Skip to main content

beforeEditEnd

fires before editing of a tree item is finished

beforeEditEnd: (value: string, id: Id) => boolean | void;

Parameters:

  • value: string - the value of an item
  • id: string | number - the id of an item

Returns:

Return false to block closing of an editor; otherwise, true.

Example

tree.events.on("BeforeEditEnd", function(value, id) {    // your logic here    return false;});

Related sample: Tree. Events

Change log:

added in v7.0