TreeEvents Interface

Tree events that can occur while interacting with tree.

Note: Selection and checkbox state change events payload is an Observable. Observable is a stream of data over time (e.g. in case of selection replaced event it is a stream of selected node items arrays). To access data inside stream subscribe() method should be called. This method accepts any subset of 'next', 'error' and 'complete' callbacks. Once subscribe is called observable will start emitting data and calls 'next' callback each time new data is emitted. If some selected nodes are not loaded yet they will be loaded and observable will emit loaded node items. When all selected node items are emitted observable completes and calls 'complete' callback if supplied.

Implemented by

Methods

Name Description
onCheckboxStateChanged(event: TreeCheckboxStateChangeEventArgs): undefined | Subscription Optional Called when checkbox states for nodes are changed.  
onDelayedNodeClick(event: TreeNodeEventArgs): void Optional Called when selected tree node is clicked.  
onNodeCollapsed(event: TreeNodeEventArgs): void Optional Called when tree node is collapsed.  
onNodeDoubleClick(event: TreeNodeEventArgs): void Optional Called when a tree node is double-clicked  
onNodeEditorActivated(event: TreeNodeEventArgs): void Optional Called when selected tree node editor is activated.  
onNodeExpanded(event: TreeNodeEventArgs): void Optional Called when tree node is expanded.  
onSelectionModified(event: TreeSelectionModificationEventArgs): undefined | Subscription Optional Called when tree selection is modified.  
onSelectionReplaced(event: TreeSelectionReplacementEventArgs): undefined | Subscription Optional Called when tree selection is replaced.  

Defined in

Last Updated: 14 November, 2024