API Reference / @gtkx/components / ListItemRenderArgs
Type Alias: ListItemRenderArgs<T>
ListItemRenderArgs<
T> =object
Defined in: packages/components/src/types.ts:48
Arguments passed to a ListItemRenderer when rendering one cell.
Type Parameters
T
T
Properties
depth?
optionaldepth?:number
Defined in: packages/components/src/types.ts:57
Depth of the item within a tree, starting at zero for top-level items.
index
index:
number
Defined in: packages/components/src/types.ts:55
Position of the item in the flattened item list, which excludes section headers and collapsed tree rows. A drop-down popup filtered by enableSearch still passes this position, not the row's place in the results.
isExpanded?
optionalisExpanded?:boolean
Defined in: packages/components/src/types.ts:59
Whether the item is currently expanded in a tree view.
item
item:
T
Defined in: packages/components/src/types.ts:50
Value of the ListItem being rendered.