IDataTableSelectProps

interface
Component Props

Props that enable and configure row selection in <OrigamDataTable> — controls the checkbox column visibility, the selection strategy, the v-model array and the equality comparator.

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.

showSelect
boolean
Renders a checkbox column in the header and each row when true.
selectStrategy
TDataTableSelectStrategy
Strategy object (or "single" | "page" | "all") controlling how select-all and individual selects interact.
modelValue
Array<any>
Array of selected item keys (or full objects when returnObject is true). Bind with v-model.
valueComparator
(a: any, b: any) => boolean
Custom equality function used to determine if two item values are the same — defaults to strict equality.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Multi-row selection with v-model

vue