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