Skip to main content

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"

Change log:

added in v6.3