Skip to content

AutocompleteOptions

Defined in: components/autocomplete.ts:14

Options for autocomplete.

options: AutocompleteOptionInput[] | (() => AutocompleteOptionInput[])

Defined in: components/autocomplete.ts:20

The candidate options. May be a static array or a function returning one — the function is called inside a reactive scope, so it can read proxied state to provide dynamic/async suggestions.


optional bind?: Bindable<string | string[]>

Defined in: components/autocomplete.ts:26

Two-way binding for the selection. In single mode this is the selected value string ("" when empty). In AutocompleteOptions.multi mode it is an array of value strings.


optional multi?: boolean

Defined in: components/autocomplete.ts:28

Allow selecting several values, shown as removable chips.


optional allowCustom?: boolean

Defined in: components/autocomplete.ts:30

Allow committing free text that isn’t in the options list. Defaults to true.


optional placeholder?: string

Defined in: components/autocomplete.ts:32

Placeholder for the text input.


optional attrs?: string

Defined in: components/field.ts:14

Aberdeen attr/style string applied to the field’s wrapper element.

FieldOptions.attrs


optional label?: Slot

Defined in: components/field.ts:16

Visible label, associated with the control via for/id for a11y.

FieldOptions.label


optional help?: Slot

Defined in: components/field.ts:18

Helper text shown beneath the control.

FieldOptions.help


optional error?: string

Defined in: components/field.ts:23

Error message shown beneath the control. When set, the control is marked aria-invalid and styled accordingly. May be reactive.

FieldOptions.error


optional disabled?: boolean

Defined in: components/field.ts:25

Disables the control.

FieldOptions.disabled


optional required?: boolean

Defined in: components/field.ts:27

Marks the field required (adds a * and the aria-required attribute).

FieldOptions.required


optional name?: string

Defined in: components/field.ts:29

The name attribute, for native form submission.

FieldOptions.name


optional id?: string

Defined in: components/field.ts:31

Explicit id for the control; auto-generated when omitted.

FieldOptions.id


optional inputAttrs?: string

Defined in: components/field.ts:33

Aberdeen attr/style string applied to the control (input) element itself.

FieldOptions.inputAttrs