Skip to main content
Version: 1.0.4

IRenderItemArgs

@spartanfx/react v1.0.4


@spartanfx/react / IRenderItemArgs

Interface: IRenderItemArgs<T>

Arguments passed to custom item renderer function.

Type Parameters

T

T = any

Properties

PropertyTypeDescription
depthnumberDepth level of the node
dragHandleProps?anyProps to spread on draggable elements (if drag & drop enabled)
hasChildrenbooleanWhether the node has children
isExpandedbooleanWhether the node is currently expanded
isSelectedbooleanWhether the node is currently selected
nodeITreeNode<T>The tree node being rendered
select() => voidFunction to select the node
toggleExpand() => voidFunction to toggle node expansion