getFocus()
returns the id of an item in focus
getFocus(): string | number;
Returns:
The id of an item in focus.
Example
list.getFocus(); // -> "item_id"
info
From v8.0, focusing of items isn't available when key navigation is disabled. Use methods of the Selection object.
Change log:
added in v6.3