Editable boolean

Overview

Properties

Name
Type
Description

name

string

Component name

value

boolean | null

Current value of the component

valid

boolean

Indicates whether the component is valid

disabled

boolean

Indicates whether the component is disabled

validating

boolean

Indicates if the component is validating

Methods

Name
Parameters
Returns
Description

setValue

value: boolean

void

Set component value

setDisabled

disabled: boolean

void

Disable or enable the component

reset

void

Reset component to the initial value

focus

void

Set focus on the component

validate

void

Trigger component validation

resetValidation

void

Clear validation errors

setErrors

errors: string | string[] | null

void

Mark the component as invalid and display errors

setRequired

required: boolean

void

Set component required state

Triggers

Name
Description

On Init

Triggered when the component is initialized

On Change

Triggered when the component's state changes

On Submit

Triggered on component's submit

On Open Editing

Triggered when Edit mode is ON

On Close Editing

Triggered when Edit mode is OFF


Boolean

Last updated

Was this helpful?