Skip to main content

Type Alias: TreeListItemProps<T>

TreeListItemProps<T> = object

Defined in: jsx.ts:100

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:112

Nested tree items (children of this item)


hideExpander?

optional hideExpander: boolean

Defined in: jsx.ts:110

Whether to hide the expand/collapse arrow


id

id: string

Defined in: jsx.ts:102

Unique identifier for this item


indentForDepth?

optional indentForDepth: boolean

Defined in: jsx.ts:106

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


indentForIcon?

optional indentForIcon: boolean

Defined in: jsx.ts:108

Whether to indent for expander icon width


value

value: T

Defined in: jsx.ts:104

The data value for this item