a-toggle
ToggleElement
A toggle is a button that can be toggled between two states. Also integrates into forms well. Used for checkboxes, switches and toggle buttons.
Example
Attributes
Name | Type | Default value | Description |
---|---|---|---|
name
|
string | undefined |
FormData name of the field. |
value
|
string | boolean | "false" |
The value of the field, which is submitted with the form data. |
Events
Name | Description |
---|---|
change
|
When value changed. |
input
|
When value changed. |