LabelBinding
Defined in: LabelBinding.ts:4, LabelBinding.ts:24
Binding for label elements
Key features:
- Associates labels with form fields
- Supports multiple field associations
- Shows error states from associated fields
Implements
Section titled “Implements”FormBinding
Config
Section titled “Config”Config =
object
Defined in: LabelBinding.ts:10
htmlFor?
Section titled “htmlFor?”
optionalhtmlFor?:Attrs["htmlFor"]
Defined in: LabelBinding.ts:12
[Override] ID of the target element
Constructor
Section titled “Constructor”new LabelBinding(
fields,config):LabelBinding
Defined in: LabelBinding.ts:25
Parameters
Section titled “Parameters”fields
Section titled “fields”FormField[]
config
Section titled “config”Returns
Section titled “Returns”LabelBinding
Members
Section titled “Members”config
Section titled “config”config:
LabelBinding.Config
Defined in: LabelBinding.ts:27
Implementation of
Section titled “Implementation of”FormBinding.config
firstErrorMessage
Section titled “firstErrorMessage”Get Signature
Section titled “Get Signature”get firstErrorMessage():
string|null
Defined in: LabelBinding.ts:39
Returns
Section titled “Returns”string | null
@computed
firstFieldStableId
Section titled “firstFieldStableId”Get Signature
Section titled “Get Signature”get firstFieldStableId():
string|undefined
Defined in: LabelBinding.ts:34
Returns
Section titled “Returns”string | undefined
Get Signature
Section titled “Get Signature”get props():
object
Defined in: LabelBinding.ts:49
Binding properties which passed to the view component
Returns
Section titled “Returns”object
aria-errormessage
Section titled “aria-errormessage”aria-errormessage:
string|undefined
aria-invalid
Section titled “aria-invalid”aria-invalid:
boolean
htmlFor
Section titled “htmlFor”htmlFor:
string|undefined
Implementation of
Section titled “Implementation of”FormBinding.props