IGroupProps

interface
Group & Selection

Props for a selectable group container — controls the v-model, multiplicity, mandatory selection and the selected-class propagated to items.

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.

disabled
boolean
When true, disables all items in the group preventing any selection change.
modelValue
any
The current selection — a single value or an array in multiple mode.
multiple
boolean
Allows more than one item to be selected at the same time.
mandatory
boolean
Enforces that at least one item is always selected; deselecting the last item is blocked.
max
number
Maximum number of items that can be selected simultaneously (only meaningful in multiple mode).
selectedClass
string
CSS class propagated to every selected item, overridable per-item via IGroupItemProps.selectedClass.

Usage

Exemples

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

Extending IGroupProps on a tab bar

typescript