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 in focus
  • id: string | number - the id of the item

Example

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