Constructor Picker
Picker(IList, Func<TItemType>, Func<TTitleType>, Action<TItemType, int>, Action<TTitleType, IEnumerable<int>>, Action<TItemType, int>, int[])
Default constructor.
Declaration
public Picker(IList items, Func<TItemType> makeItemFunc = null, Func<TTitleType> makeTitleFunc = null, Action<TItemType, int> bindItemFunc = null, Action<TTitleType, IEnumerable<int>> bindTitleFunc = null, Action<TItemType, int> unbindItemFunc = null, int[] defaultIndices = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IList | items | The items collection. |
| Func<TItemType> | makeItemFunc | The function used to create a Picker item. |
| Func<TTitleType> | makeTitleFunc | The function used to create a Picker title. |
| Action<TItemType, int> | bindItemFunc | The function used to bind a Picker item. |
| Action<TTitleType, IEnumerable<int>> | bindTitleFunc | The function used to bind a Picker title. |
| Action<TItemType, int> | unbindItemFunc | The function used to unbind a Picker item. |
| int[] | defaultIndices | The selected index by default. |