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.
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.
- itemsArray<any>
- Array of data objects to display, one per row.
- itemValueTSelectItemKey
- Property path (or function) used to derive the unique key for each item — required for selection and expansion tracking.
- itemSelectableTSelectItemKey
- Property path (or function) that returns a boolean indicating whether a row can be selected.
- rowPropsTDataTableRow<any>
- Object or function returning extra props (class, style, data-*…) merged onto each <tr> root element.
- cellPropsTDataTableCell<any>
- Object or function returning extra props merged onto each <td> cell element.
- returnObjectboolean
- 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