ISelectionGroupContext
interface
Form & Input
Provide/inject context passed from SelectionControlGroup to each child SelectionControl. Exposes the shared reactive modelValue, a forceUpdate trigger for when the parent needs to re-evaluate all children, and an onForceUpdate registration hook for children to subscribe.
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.
- modelValuerequisRef<any>
- Shared reactive ref holding the current group selection. Children read and write through this ref; the group synchronises changes to the parent v-model.
- forceUpdaterequis() => void
- Called by the group when an external change requires all children to re-check their checked state (e.g. programmatic clear or reset).
- onForceUpdaterequis(fn: () => void) => void
- Registration function used by each child to subscribe a callback that runs when forceUpdate is called.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Injecting the group context in a custom selection control