Module: json-editor

Simple JSON editor component.

Source:

Example

<JsonEditor />

Methods

(computed) style()

Sets style of the component

Source:

(function) created()

Initializes the component.

Source:

(function) data()

Method data
Source:

(method) alignWithPreviousIndentation()

Method alignWithPreviousIndentation
Source:

(method) focus()

Focuses the JSON editor.

Source:

(method) handleComponentBlur(event)

Handles the blur event of the component.

Parameters:
Name Type Description
event Event

The blur event.

Source:

(method) onKeyDown(jsonString)

Displays JSON in a formatted way.

Parameters:
Name Type Description
jsonString string

The JSON string to format.

Source:

(method) parse()

Parses the JSON string.

Source:

(method) stringify()

Stringifies the JSON string.

Source:

(method) updateIcon(value)

Updates the icon.

Parameters:
Name Type Description
value string

The value to update.

Source:

(method) updateJson(event)

Updates the JSON string.

Parameters:
Name Type Description
event Event

The input event.

Source: