Skip to main content

setFocus()

sets focus to an item by its id

setFocus(id: string | number): void;

Parameters:

id: string | number - the id of an item

Example

list.setFocus("item_id");

Related sample: List. Set Active Index

Change log:

added in v6.3