Search
DiagramBase.treeItemTextEdited Event
See Also
 





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

Namespace: MindFusion.Diagramming
File: DiagramBase.js

 Syntax

JavaScript  Copy Code
diagram.treeItemTextEdited.addEventListener(onTreeItemTextEdited);

 Event Data

Event handlers receive a TreeItemEventArgs instance containing data about this event.

 Example

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

 See Also