CheckboxOptions
Defined in: components/checkbox.ts:6
Options for checkbox.
Extends
Section titled “Extends”Omit<FieldOptions,"label">
Properties
Section titled “Properties”label?
Section titled “label?”
optionallabel?:Slot
Defined in: components/checkbox.ts:8
The label shown next to the box. Required for a meaningful checkbox.
optionalbind?:Bindable<boolean>
Defined in: components/checkbox.ts:10
Two-way binding target holding a boolean.
checked?
Section titled “checked?”
optionalchecked?:boolean
Defined in: components/checkbox.ts:12
Static initial checked state.
change?
Section titled “change?”
optionalchange?: (event) =>void
Defined in: components/checkbox.ts:14
Fired on change with the native event.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”void
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”
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.