IDataTableItemBase

interface
Data Display

Base shape shared by all row slot contexts in <OrigamDataTable> — provides the row index, raw item, its resolved internal item, and handlers for expand and select.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

index
requis
number
Zero-based position of this row in the rendered items list.
item
requis
T
The raw data object for this row.
internalItem
requis
IDataTableItem<T>
The resolved internal item wrapping the raw object with computed key, columns map, and selection/expansion flags.
isExpanded
requis
(item: IDataTableItem) => boolean
Returns true when the given row is currently expanded.
toggleExpand
requis
(item: IDataTableItem) => void
Toggles the expanded state of the given row.
isSelected
requis
(items: IDataTableSelectableItem | Array<IDataTableSelectableItem>) => boolean
Returns true when all given items are currently selected.
toggleSelect
requis
(item: IDataTableSelectableItem) => void
Toggles the selected state of the given item.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Row slot using IDataTableItemBase handlers

vue