TreeNodeProps Interface

Properties for the TreeNode React component

Extends

Methods

Name Description
onClick(e: MouseEvent<Element, MouseEvent>): void Optional    
onClickExpansionToggle(): void Optional    
onContextMenu(e: MouseEvent<Element, MouseEvent>): void Optional    
onMouseDown(e: MouseEvent<Element, MouseEvent>): void Optional    
onMouseMove(e: MouseEvent<Element, MouseEvent>): void Optional    
onMouseUp(e: MouseEvent<Element, MouseEvent>): void Optional    

Properties

Name Type Description
checkboxProps undefined | NodeCheckboxProps Properties for the checkbox.  
children undefined | ReactNode    
data-testid undefined | string    
icon undefined | ReactChild    
isExpanded undefined | boolean    
isFocused undefined | boolean    
isHoverDisabled undefined | boolean    
isLeaf undefined | boolean    
isLoading undefined | boolean    
isSelected undefined | boolean    
label ReactNode    
level number    
renderOverrides undefined | { renderCheckbox?: NodeCheckboxRenderer } Contains render overrides for different pieces of the node component.  

Inherited properties

Name Type Inherited from Description
className undefined | string CommonProps Custom CSS class name
style undefined | CSSProperties CommonProps Custom CSS style properties

Defined in

Last Updated: 11 June, 2024