Checkbox API
API Reference e-checkbox
Properties
Name | Description | Type | Required | Default value |
---|---|---|---|---|
label |
Adds label to the checkbox | string | ||
sr-label |
Adds screen reader label to the checkbox | string | ||
data-id |
The id of the input component inside | string | ||
name |
The name how the element will be posted in forms | string | ||
value |
The value of the input | string | ||
checked |
Whether the input is checked | boolean | ||
indeterminate |
Whether the input is in an indeterminate state | boolean | ||
disabled |
If the input is interactive or not | boolean | ||
helper |
Helper tooltip to show next to the label | string |
Events
Event | Description | Returns |
---|---|---|
change |
Fires on clicking or keyboard select whenever the checked state changes | Change event |
click |
Fires on clicking the input or the label | Click event |