Skip to main content

afterCheck

fires after the state of an item is changed

afterCheck: (index: number, id: Id, value: boolean) => void;

Parameters:

  • index: number - the position of an item
  • id: string | number - the id of the item
  • value: boolean - the state of the item, true if the item is checked; otherwise, false

Example

tree.events.on("afterCheck", function (index, id, value) {    console.log("afterCheck", index, id, value);});

Change log:

added in v7.1