TextareaOptions
Defined in: components/textarea.ts:6
Options for textarea.
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”placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: components/textarea.ts:8
Placeholder text.
optionalbind?:Bindable<string>
Defined in: components/textarea.ts:10
Two-way binding target.
value?
Section titled “value?”
optionalvalue?:string
Defined in: components/textarea.ts:12
Static initial value.
optionalrows?:number
Defined in: components/textarea.ts:14
Visible number of text rows. Defaults to 4. Ignored when autoGrow is enabled.
resize?
Section titled “resize?”
optionalresize?:"none"|"vertical"|"horizontal"|"both"
Defined in: components/textarea.ts:16
Whether the textarea may be resized by the user. Defaults to "vertical". Ignored when autoGrow is enabled.
autoGrow?
Section titled “autoGrow?”
optionalautoGrow?:boolean
Defined in: components/textarea.ts:18
Auto-grow the textarea to fit its content. Defaults to true.
input?
Section titled “input?”
optionalinput?: (event) =>void
Defined in: components/textarea.ts:20
Fired on every input event.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”void
change?
Section titled “change?”
optionalchange?: (event) =>void
Defined in: components/textarea.ts:22
Fired on change (commit).
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”void