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.

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.

type
requis
'group'
Discriminant literal — always "group". Used to distinguish group nodes from item nodes at runtime.
depth
requis
number
Nesting depth of this group (0 = top-level, 1 = nested, …).
id
requis
string
Stable unique id for this group node, used as the key in the opened set.
key
requis
string
Column key this group was built from (matches the groupBy sortItem key).
value
requis
any
The shared value of this group (e.g. the department name when grouping by department).
items
requis
Array<(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

vue