CRUDUI

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

blank_message?

LocalizedText

(Optional) Message shown when blank/empty.

callback?

string

(Optional) Type-dependent callback (e.g. select2).

checkbox_label?

LocalizedText

(Optional) Label rendered next to a checkbox.

collapse?

boolean

(Optional) Container chrome — collapse state.

event?

unknown

(Optional) Type-dependent event config (e.g. datetime).

expend?

boolean

(Optional) Container chrome — expand state.

geometry_type?

string

(Optional) Geometry type (e.g. point/line/polygon).

keyword_min_length?

number

(Optional) Minimum keyword length (e.g. autocomplete trigger).

marker_draggable?

boolean

(Optional) Whether the map marker is draggable.

max_tags?

number

(Optional) Maximum number of tags.

on_label?

LocalizedText

(Optional) Label for the "on" state of a toggle.

stepper?

boolean

(Optional) Container chrome — stepper UI.

view_total?

boolean

(Optional) Container chrome — show a total count.

zoom?

number

(Optional) Map zoom level.