Constructor Dropdown
Dropdown()
Default constructor.
Declaration
public Dropdown()
Dropdown(IList, Action<DropdownItem, int>, Action<DropdownItem, IEnumerable<int>>, int[])
Construct a Dropdown UI element with a provided dynamic collection of items.
Declaration
public Dropdown(IList items, Action<DropdownItem, int> bindItemFunc = null, Action<DropdownItem, IEnumerable<int>> bindTitleFunc = null, int[] defaultIndices = null)
Parameters
Type | Name | Description |
---|---|---|
IList | items | An items collection. |
Action<DropdownItem, int> | bindItemFunc | The binding function used to populate display data for each item. |
Action<DropdownItem, IEnumerable<int>> | bindTitleFunc | The binding function used to populate display data for the title. |
int[] | defaultIndices | The selected index by default. |