TreeRendererContext Interface

Beta  

Context of TreeRenderer component.

Methods

Name Description
nodeRenderer(props: TreeNodeRendererProps): ReactNode Callback to render custom node.  
onLabelRendered(node: TreeModelNode): void Optional Callback used detect when label is rendered.  
onNodeEditorClosed(): void Optional Callback used when an editor closes  
onNodeWidthMeasured(width: number): void Optional A callback that node calls after rendering to report its width  

Properties

Name Type Description
highlightingEngine undefined | HighlightingEngine Engine used to created node highlighting properties.  
nodeLoader ITreeNodeLoader    
treeActions TreeActions    
visibleNodes VisibleTreeNodes Flat list of nodes to be rendered.  

Defined in

Last Updated: 12 June, 2024