Raised when the user edits the text of a tree view item.
Namespace: MindFusion.Diagramming
Package: 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); }); |
NetDiagram Programmer's Guide | © 2023 MindFusion |