Raised when the user edits the text of a tree view item.
Namespace: MindFusion.Diagramming
File: Events.js
JavaScript Copy Code |
---|
get treeItemTextEdited() {} |
String
A string containing the event name.
Event handlers receive a TreeItemEventArgs instance as argument.
This example handles the treeItemTextEdited event to remove items without text.
JavaScript Copy Code |
---|
diagram.addEventListener(Events.treeItemTextEdited, (sender, args) => { if (!args.newText) args.node.removeItem(args.item); }); |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |