IDataTableProvideExpanded
interface
Component Props
Internal provide/inject contract for row expansion state in <OrigamDataTable> — exposes the expanded set and helpers for child components (expand row, virtual row, footer) to query and toggle expansion.
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.
- expandrequis(item: IDataTableItem, value: boolean) => void
- Imperatively sets the expansion state of the given item to value.
- expandedrequisTVModel<IDataTableExpandProps, 'expanded', Set<string>>
- Reactive set of expanded item keys, kept in sync with the v-model:expanded prop.
- expandOnClickrequisRef<boolean | undefined>
- Reactive flag mirroring the expandOnClick prop — when true, clicking a row toggles its expansion.
- isExpandedrequis(item: IDataTableItem) => boolean
- Returns true when the given item is currently in the expanded set.
- toggleExpandrequis(item: IDataTableItem) => void
- Toggles the expansion 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.
Expand row programmatically via inject