selectedIndex([index])
Class: List.
Description:
Sets or gets an index of a selected item. Can be used to make one item at certain index to be selected.
To select more than one item make sure to enable multi-selection by selectionMode(SelectionMode.Multiple), and then use selection() method instead.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Index of an item to select. |
Returns:
If index is specified, then this component instance is returned, otherwise currently selected index is returned.
Type: List | number
