ISelectionControlGroupSlots

interface
Form & Input

Slot signatures for <OrigamSelectionControlGroup>. Exposes a default slot for fully custom rendering of all items, an item slot for per-item customisation, and an open index signature to allow arbitrary named slots to be forwarded from parent components.

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.

default
(items: Array<any> | Record<string, any>) => any
Replaces the entire item list rendering. Receives the full items array/record and is responsible for rendering all controls.
item
(item: any, index: number | string) => any
Renders a single item in the group. Receives the item value and its index. Use this to customise individual control appearance without replacing the whole list.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Custom item rendering in a selection group

html