Skip to main content

focusChange

fires on moving focus to a new item

focusChange: (index: number, id: Id) => void;

Parameters:

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

Example

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

Change log:

added in v7.0