setFocusIndex

sets focus to an item according to its index

void setFocusIndex(number index);

Deprecated

instead of it, you can set focus to an item by its id using the setFocus method:

list.setFocus("id");

Parameters

indexnumberthe index of an item

Example

list.setFocusIndex(7);

Back to top