focusChange
fires on moving focus to a new item
focusChange: (focusIndex?: number, id?: string | number) => void;
Parameters:
The callback of the focusChange event is called with the following parameters:
focusIndex
- (optional) the position of an item in focusid
- (optional) the id of the item
Example
dataview.events.on("focusChange", function(focusIndex, id){
// your code here
});
Related sample: Dataview. Events
Change log:
- Parameters of the callback function became optional in v8.3.14