Skip to main content

Type Alias: TreeListItemProps<T>

TreeListItemProps<T> = object

Defined in: jsx.ts:54

Props for items in a TreeListView.

Type Parameters

Type ParameterDefault typeDescription
TunknownThe type of data associated with this tree item

Properties

children?

optional children: ReactNode

Defined in: jsx.ts:66

Nested tree items (children of this item)


hideExpander?

optional hideExpander: boolean

Defined in: jsx.ts:64

Whether to hide the expand/collapse arrow


id

id: string

Defined in: jsx.ts:56

Unique identifier for this item


indentForDepth?

optional indentForDepth: boolean

Defined in: jsx.ts:60

Whether to indent based on tree depth (default: true)


indentForIcon?

optional indentForIcon: boolean

Defined in: jsx.ts:62

Whether to indent for expander icon width


value

value: T

Defined in: jsx.ts:58

The data value for this item