Skip to main content

focusChange

fires on moving focus to a new item

focusChange: (focusIndex: number, id: string | number) => void;

Parameters:

  • focusIndex: number - the position of an item
  • id: string | number - the id of an item

Example

list.events.on("FocusChange", function(index, id){    // your code here});

Related sample: List. List Events