IDataTableHeaderCellColumnSlot

interface
Component Slots

Slot props injected into per-column header cell slots of <OrigamDataTable> — provides the column definition plus sort helpers (isSorted, toggleSort, getSortIcon) and selection helpers (selectAll, someSelected, allSelected).

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.

column
requis
IInternalDataTableHeader
The resolved internal column definition for this header cell.
selectAll
requis
(value: boolean) => void
Selects or deselects all rows.
isSorted
requis
(column: IInternalDataTableHeader) => boolean
Returns true when the column is part of the active sort.
toggleSort
requis
(column: IInternalDataTableHeader) => void
Cycles the sort direction for the column (none → asc → desc).
sortBy
requis
Array<IDataTableSortItem>
Reactive list of active sort columns.
someSelected
requis
boolean
True when at least one row is selected (used for the indeterminate checkbox state).
allSelected
requis
boolean
True when every visible row is selected.
getSortIcon
requis
(column: IInternalDataTableHeader) => TIcon | undefined
Returns the correct sort indicator icon for the column.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom header cell with sort indicator

vue