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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- 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.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Custom label with a link inside a checkbox