beforeEditStart
fires before editing of an item has started
beforeEditStart: (value: string, id: string | number) => boolean | void;
Parameters:
value: string
- the value of an itemid: string | number
- the id of an item
Returns:
Return false
to block editing of an item; otherwise, true
.
Example
tree.events.on("beforeEditStart", function(value, id) {
// your logic here
return false;
});
Related sample: Tree. Events
Change log:
added in v7.0