focusedItem([index])
Class: Tree.
Description:
Gets or sets currently focused item in the tree. Focus is little different than selection. Focus can be controlled by focus traversing keys, such as Tab, and focused item is not always an item being selected. Multiple items may be selected at a time, but only one item can retain focus at a time.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Array.<number> |
Index of one item (array of numbers). |
Returns:
When no parameters are passed, returns currently focused item or undefined when no item is focused. When index is provided, this Tree component is returned.
Type: Array.<number> | undefined | Tree
