TextlineOptions
Defined in: components/textline.ts:25
Options for textline.
Extends
Section titled “Extends”Properties
Section titled “Properties”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.
Inherited from
Section titled “Inherited from”
optionaltype?:TextlineType
Defined in: components/textline.ts:27
Input type. Defaults to "text".
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: components/textline.ts:29
Placeholder text.
optionalbind?:Bindable<string|number>
Defined in: components/textline.ts:31
Two-way binding target (e.g. A.ref($user, "name")).
value?
Section titled “value?”
optionalvalue?:string|number
Defined in: components/textline.ts:33
Static initial value (use bind for reactivity).
autocomplete?
Section titled “autocomplete?”
optionalautocomplete?:string
Defined in: components/textline.ts:35
Autocomplete hint passed to the native autocomplete attribute.
input?
Section titled “input?”
optionalinput?: (event) =>void
Defined in: components/textline.ts:37
Fired on every input event with the native event.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”void
change?
Section titled “change?”
optionalchange?: (event) =>void
Defined in: components/textline.ts:39
Fired on change (commit) with the native event.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”void