focusChange
fires on moving focus to a new item
focusChange: (focusIndex: number, id: string | number) => void;
Parameters:
focusIndex: number
- the position of an itemid: string | number
- the id of an item
Example
list.events.on("focusChange", function(index, id){
// your code here
});
Related sample: List. Events