Skip to content

FormOptions

Defined in: components/form.ts:5

Options for form.

optional submit?: (data, event) => void

Defined in: components/form.ts:11

Submit handler. Called with collected form data (keyed by each field’s name) and the original event. preventDefault() is already called. Multi-value fields (e.g. multi-select) produce a string[].

Record<string, string | string[]>

SubmitEvent

void


optional layout?: "stacked" | "grid"

Defined in: components/form.ts:17

Layout of fields. "stacked" (default) is a single column; "grid" packs fields into a responsive multi-column grid. A field can span the full grid width by adding the .s-wide class (e.g. attrs: ".s-wide").


optional actionsAttrs?: string

Defined in: components/form.ts:19

Aberdeen attr/style string for the action bar.


optional actions?: Slot

Defined in: components/form.ts:21

Footer actions (typically a import(”./buttonGroup”).buttonGroup or buttons).


optional attrs?: string

Defined in: core.ts:52

Aberdeen attr/style string applied to the widget’s outermost element.

ContentOptions.attrs


optional content?: Slot

Defined in: core.ts:54

Draws the children of this component. A string is rendered as rich text.

ContentOptions.content