Home > @polyspec/crudui-validator > OptionsSlot
OptionsSlot interface
Type-dependent settings (dependency isolation: type → options). Defined and validated by the field's type; the core does not interpret them, so a new widget leaves the core unchanged. Container-type chrome and type-dependent scripts/callbacks live here too. The listed keys are common examples; the index signature admits any type-specific key.
Signature:
export interface OptionsSlot
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) Message shown when blank/empty. | |||
|
string |
(Optional) Type-dependent callback (e.g. select2). | ||
|
(Optional) Label rendered next to a checkbox. | |||
|
boolean |
(Optional) Container chrome — collapse state. | ||
|
unknown |
(Optional) Type-dependent event config (e.g. datetime). | ||
|
boolean |
(Optional) Container chrome — expand state. | ||
|
string |
(Optional) Geometry type (e.g. point/line/polygon). | ||
|
number |
(Optional) Minimum keyword length (e.g. autocomplete trigger). | ||
|
boolean |
(Optional) Whether the map marker is draggable. | ||
|
number |
(Optional) Maximum number of tags. | ||
|
(Optional) Label for the "on" state of a toggle. | |||
|
boolean |
(Optional) Container chrome — stepper UI. | ||
|
boolean |
(Optional) Container chrome — show a total count. | ||
|
number |
(Optional) Map zoom level. |