JSON Editor

Overview

JSON Editor provides advanced options to edit JSON. The component supports syntax formatting and highlighting.

Properties

Name
Type
Description

name

string

Component name

value

string

Current component value

parsedValue

any

Parsed component value

valid

boolean

Indicates if the component is valid

validating

boolean

Indicates if the component is validating

readonly

boolean

Component read-only state

Methods

Name
Parameters
Returns
Description

setValue

data: object |

string

void

Set component value

reset

โ€“

void

Reset component to the initial value

setReadonly

readOnly: boolean

void

Enable or disable read-only mode

focus

โ€“

void

Set focus on the component

validate

โ€“

void

Trigger form validation

resetValidation

โ€“

void

Clear validation errors

setErrors

errors: string |

string[] | null

void

Mark component as invalid and display errors

setRequired

required: boolean

void

Set component required state

Triggers

Name
Description

On Change

Triggered when the component's state changes

On Enter

Triggered when the Enter key is pressed

On Focus

Triggered when the component is in focus

On Blur

Triggered when the component loses focus

On Init

Triggered when the component is initialized

Last updated

Was this helpful?