Skip to content

API Reference / @gtkx/components / ListItemRenderArgs

Type Alias: ListItemRenderArgs<T> ​

ListItemRenderArgs<T> = object

Defined in: packages/components/src/types.ts:45

Arguments passed to a ListItemRenderer when rendering one cell.

Type Parameters ​

T ​

T

Properties ​

depth? ​

optional depth?: number

Defined in: packages/components/src/types.ts:51

Depth of the item within a tree, starting at zero for top-level items.


index ​

index: number

Defined in: packages/components/src/types.ts:49

Position of the item in the flattened item list, which excludes section headers and collapsed tree rows.


isExpanded? ​

optional isExpanded?: boolean

Defined in: packages/components/src/types.ts:53

Whether the item is currently expanded in a tree view.


item ​

item: T

Defined in: packages/components/src/types.ts:47

Value of the ListItem being rendered.