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.
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.
- disabledboolean
- When true, disables all items in the group preventing any selection change.
- modelValueany
- The current selection — a single value or an array in multiple mode.
- multipleboolean
- Allows more than one item to be selected at the same time.
- mandatoryboolean
- Enforces that at least one item is always selected; deselecting the last item is blocked.
- maxnumber
- Maximum number of items that can be selected simultaneously (only meaningful in multiple mode).
- selectedClassstring
- 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