Toggle
A switch component that toggles between two or three states with customizable icons and values. Features customizable appearance with support for indeterminate state, custom icons, labels, and color schemes. Ideal for boolean or tri-state input with visual feedback.
Extends: fieldComponent
Fields
Name | Code | Data Type | Description |
|---|---|---|---|
Checked Icon |
| text | Icon to display when toggle is in checked state |
Unchecked Icon |
| text | Icon to display when toggle is in unchecked state |
Indeterminate Icon |
| text | Icon to display when toggle is in indeterminate state |
Indeterminate Value |
| text | Value to use for the indeterminate state |
Toggle Indeterminate |
| boolean | Enables the third indeterminate state |
Toggle True Value |
| text | Value to use when toggle is checked |
Toggle False Value |
| text | Value to use when toggle is unchecked |
Keep Color |
| boolean | Maintains the color when toggle is inactive |
UnChecked Icon Color |
| text | Color of the unchecked icon |
Left Label |
| boolean | Positions the label on the left side of the toggle |
Toggle Label |
| text | Label text displayed next to the toggle |
Size |
| text | Size of the toggle component |
Color |
| text | Color of the toggle when active |
Dark |
| boolean | Enables dark mode appearance |
Label |
| multi-locale | Label for the toggle field |
ID |
| text | Unique identifier for the component |
Style Classes |
| text | CSS classes for styling |
Width |
| text | Controls component width |
Value |
| text | Current toggle state value |
Visible |
| boolean | Controls component visibility |
Enabled |
| boolean | Controls whether component is enabled |
Outlined |
| boolean | Shows component with outlined style |
Events
Name | Description |
|---|---|
| Triggered when the toggle state changes |
| Triggered when the toggle loses focus |
| Triggered when the toggle gains focus |