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.

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.

expand
requis
(item: IDataTableItem, value: boolean) => void
Imperatively sets the expansion state of the given item to value.
expanded
requis
TVModel<IDataTableExpandProps, 'expanded', Set<string>>
Reactive set of expanded item keys, kept in sync with the v-model:expanded prop.
expandOnClick
requis
Ref<boolean | undefined>
Reactive flag mirroring the expandOnClick prop — when true, clicking a row toggles its expansion.
isExpanded
requis
(item: IDataTableItem) => boolean
Returns true when the given item is currently in the expanded set.
toggleExpand
requis
(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

typescript