IDataTableGroup
interface
Data Display
Internal representation of a group node in a grouped <OrigamDataTable>. Carries the group key, value, nesting depth, and the flattened list of child items or nested sub-groups.
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.
- typerequis'group'
- Discriminant literal — always "group". Used to distinguish group nodes from item nodes at runtime.
- depthrequisnumber
- Nesting depth of this group (0 = top-level, 1 = nested, …).
- idrequisstring
- Stable unique id for this group node, used as the key in the opened set.
- keyrequisstring
- Column key this group was built from (matches the groupBy sortItem key).
- valuerequisany
- The shared value of this group (e.g. the department name when grouping by department).
- itemsrequisArray<(T | IDataTableGroup<T>)>
- Children of this group — either data items or nested IDataTableGroup nodes when groupBy has multiple levels.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Grouping rows by department