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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom item rendering in a selection group

html