Search
Events.treeItemTextEdited Property
See Also
 






Raised when the user edits the text of a tree view item.

Namespace: MindFusion.Diagramming
File: Events.js

 Syntax

JavaScript  Copy Code

get treeItemTextEdited() {}
set treeItemTextEdited(value) {}

 Property Value

String

A string containing the event name.

 Remarks

Event handlers receive a TreeItemEventArgs instance as argument.

 Example

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);
});

 See Also