IDataTableItemsProps

interface
Component Props

Configures the items data source of <OrigamDataTable> — the items array, the key extractor, the selectability resolver and per-row/cell prop factories.

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.

items
Array<any>
Array of data objects to display, one per row.
itemValue
TSelectItemKey
Property path (or function) used to derive the unique key for each item — required for selection and expansion tracking.
itemSelectable
TSelectItemKey
Property path (or function) that returns a boolean indicating whether a row can be selected.
rowProps
TDataTableRow<any>
Object or function returning extra props (class, style, data-*…) merged onto each <tr> root element.
cellProps
TDataTableCell<any>
Object or function returning extra props merged onto each <td> cell element.
returnObject
boolean
When true, v-model:modelValue and select events return the full raw object instead of the extracted itemValue.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

DataTable with custom itemValue and rowProps

vue