AutocompleteOptions
Defined in: components/autocomplete.ts:14
Options for autocomplete.
Extends
Section titled “Extends”Properties
Section titled “Properties”options
Section titled “options”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.
optionalbind?: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.
multi?
Section titled “multi?”
optionalmulti?:boolean
Defined in: components/autocomplete.ts:28
Allow selecting several values, shown as removable chips.
allowCustom?
Section titled “allowCustom?”
optionalallowCustom?:boolean
Defined in: components/autocomplete.ts:30
Allow committing free text that isn’t in the options list. Defaults to true.
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: components/autocomplete.ts:32
Placeholder for the text input.
attrs?
Section titled “attrs?”
optionalattrs?:string
Defined in: components/field.ts:14
Aberdeen attr/style string applied to the field’s wrapper element.
Inherited from
Section titled “Inherited from”label?
Section titled “label?”
optionallabel?:Slot
Defined in: components/field.ts:16
Visible label, associated with the control via for/id for a11y.
Inherited from
Section titled “Inherited from”
optionalhelp?:Slot
Defined in: components/field.ts:18
Helper text shown beneath the control.
Inherited from
Section titled “Inherited from”error?
Section titled “error?”
optionalerror?: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.
Inherited from
Section titled “Inherited from”disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: components/field.ts:25
Disables the control.
Inherited from
Section titled “Inherited from”required?
Section titled “required?”
optionalrequired?:boolean
Defined in: components/field.ts:27
Marks the field required (adds a * and the aria-required attribute).
Inherited from
Section titled “Inherited from”
optionalname?:string
Defined in: components/field.ts:29
The name attribute, for native form submission.
Inherited from
Section titled “Inherited from”
optionalid?:string
Defined in: components/field.ts:31
Explicit id for the control; auto-generated when omitted.
Inherited from
Section titled “Inherited from”inputAttrs?
Section titled “inputAttrs?”
optionalinputAttrs?:string
Defined in: components/field.ts:33
Aberdeen attr/style string applied to the control (input) element itself.