Toggle

A toggle is a switcher for a boolean value. The toggle supports required field and a custom validation.

Methods

MethodDescription

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

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 updated