Feature Request: dynamic TabGroup for lists or customizable page size in ListDrawerSettings
I like tabs, but I'd like them even better if you could dynamically create one tab for each element of a list.
Alternatively, you could add an extra option to ListDrawerSettings for the number of elements per page. This way, I could fake the effect by setting the page size to 1 (functionally giving me a "tabbed" list).
Comments (4)
-
-
reporter Thanks for the detailed solution :) Is there a way to have add and remove buttons (just like the list header) instead of re-rendering the entire list in the foldout? I'd consult the documentation but it seems like it's still under construction...
-
You have access to insert and add via the entry.GetListValueEntryChanger() it will handle multi-selection, and resolve references and all that.
Note that entry.GetListValueEntryChanger().AddListElement() takes an array of objects in order to make it work with multi-selection.
So you would need to do something like:
entry.GetListValueEntryChanger() .AddListElement(Enumerable.Repeat(valueToAdd, this.ListChanger.ValueCount).ToArray(), "Added values to the list");
-
- changed status to resolved
From patch 1.0.4.1 notes:
"You can now override the number of items per page for lists via the ListDrawerSettings attribute."
- Log in to comment
Haha, Never thought of that before, clever. I'll add that to the list drawer settings.
We actually have a [TabList] attribute in our prototyping folder which we used internally for some time. But I would much rather want a general solution that solves it for all group drawers. Just haven't thought of one yet
For now though, you could also create your own tab list drawer which could look something like this: