ISelectionControlSlots

interface
Form & Input

Slot signatures for <OrigamSelectionControl>. Three slots give full control over the rendering: default replaces the entire control surface, label replaces the label text, and input replaces the underlying native input element.

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
(data: { model: any, color?: TColor, bgColor?: TColor, icon?: TIcon, props: any }) => any
Replaces the entire control surface. Receives the current model value, the active icon, and the internal props object.
label
() => any
Replaces the label text. Useful for rich label content (icons, links, formatted text).
input
(data: { model: any, color?: TColor, bgColor?: TColor, icon?: TIcon, props: any, textColorStyles?: any, backgroundColorStyles?: any }) => any
Replaces the native input element while keeping the surrounding label/ripple scaffolding. Receives internal props, the current icon, and the model ref.

É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 label with a link inside a checkbox

html