Toggle
A toggle is a switcher for a boolean value. The toggle supports the required field and a custom validation.
Methods
Triggers
Triggers allow you to launch certain actions based on different events.
Last updated
A toggle is a switcher for a boolean value. The toggle supports the required field and a custom validation.
Triggers allow you to launch certain actions based on different events.
Last updated
Method | Description |
---|---|
setValue(value: boolean)
sets data for the checkbox
setDisabled(disabled: boolean)
enables or disables the component
reset()
resets the component to the initial value
validate()
triggers component's validation
resetValidation()
resets the validation
On Init
Calls for an action on component initialization, e.g., page refresh
On Change
Calls for an action on the component's state change