Radio

A UI element that allows users to make a single selection from a list of options.

Methods

Method
Description

setValue(value: any)

Sets component value

setOptions(options: object[])

Sets options for the radio component

setDisabled(disabled: boolean)

Disables or enables the component

reset()

Resets component to the initial value

resetValidation()

Clears validation errors

setErrors(errors: string | string[] | null)

Marks the component as invalid and displays errors

Triggers

Triggers allow you to launch certain actions based on different events.

On Change

Calls for an action when the component's state is changed

On Focus

Calls for an action on component focus

On Blur

Calls for an action on component blur

On Init

Calls for an action on component's initialization

Last updated

Was this helpful?