FormOptions
Defined in: components/form.ts:5
Options for form.
Extends
Section titled “Extends”Properties
Section titled “Properties”submit?
Section titled “submit?”
optionalsubmit?: (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[].
Parameters
Section titled “Parameters”Record<string, string | string[]>
SubmitEvent
Returns
Section titled “Returns”void
layout?
Section titled “layout?”
optionallayout?:"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").
actionsAttrs?
Section titled “actionsAttrs?”
optionalactionsAttrs?:string
Defined in: components/form.ts:19
Aberdeen attr/style string for the action bar.
actions?
Section titled “actions?”
optionalactions?:Slot
Defined in: components/form.ts:21
Footer actions (typically a import(”./buttonGroup”).buttonGroup or buttons).
attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: core.ts:52
Aberdeen attr/style string applied to the widget’s outermost element.
Inherited from
Section titled “Inherited from”content?
Section titled “content?”
optionalcontent?:Slot
Defined in: core.ts:54
Draws the children of this component. A string is rendered as rich text.