Skip to content

API Reference / @gtkx/components / index / ListItemRenderArgs

Type Alias: ListItemRenderArgs<T>

ListItemRenderArgs<T> = object

Defined in: types.d.ts:32

Arguments passed to a ListItemRenderer when rendering one cell.

Type Parameters

T

T

Properties

depth?

optional depth?: number

Defined in: types.d.ts:38

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


index

index: number

Defined in: types.d.ts:36

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


isExpanded?

optional isExpanded?: boolean

Defined in: types.d.ts:40

Whether the item is currently expanded in a tree view.


item

item: T

Defined in: types.d.ts:34

Value of the ListItem being rendered.

Released under the MPL-2.0 License.