Toggle
A toggle is a switcher for a boolean value. The toggle supports required field and a custom validation.
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 |
Triggers allow you to launch certain actions upon different events.
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 |
Last modified 2mo ago