Skip to content

API Reference / @gtkx/components / ItemNode

Type Alias: ItemNode<T>

ItemNode<T> = object

Defined in: types.d.ts:15

A single item in a collection model, identified by a stable id and holding an arbitrary value. Nested items form a tree.

Type Parameters

T

T = unknown

Properties

children?

optional children?: ItemNode<T>[]

Defined in: types.d.ts:19


hideExpander?

optional hideExpander?: boolean

Defined in: types.d.ts:21

Hides the tree expander arrow even when the item has children.


id

id: string

Defined in: types.d.ts:17

Stable identifier used to track the item across updates and selection.


indentForDepth?

optional indentForDepth?: boolean

Defined in: types.d.ts:23

Adds indentation matching the item's depth in the tree.


indentForIcon?

optional indentForIcon?: boolean

Defined in: types.d.ts:25

Reserves indentation space for an expander icon.


value

value: T

Defined in: types.d.ts:18

Released under the MPL-2.0 License.