IGroupItemProvide

interface
Group & Selection

Runtime injection provided by each item component to its descendants — exposes identity, selection state, toggle and a back-reference to the parent group.

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.

id
requis
number
Unique numeric id assigned by the parent group on registration.
isSelected
requis
Ref<boolean>
Reactive flag — true when this item is in the group selection.
toggle
requis
() => void
Toggles the selected state of this item inside the group.
select
requis
(value: boolean) => void
Explicitly sets the selected state to the given boolean.
selectedClass
requis
Ref<Array<(string | undefined)> | false>
Resolved CSS class list to apply when selected, or false when not selected.
value
requis
Ref<unknown>
Reactive ref wrapping the item value (mirrors the value prop).
disabled
requis
Ref<boolean | undefined>
Reactive disabled state — true prevents selection.
group
requis
IGroupProvide
Back-reference to the parent group provide object.

Usage

Exemples

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

Injecting the group-item provide in a child component

typescript