Toggle

A toggle is a switcher for a boolean value. The toggle supports the 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 based on 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

© 2024 UI Bakery