/ui/elements/jsoneditor

The module dynamically imports the vanilla-jsoneditor from esm.sh and exports a utility method to create a jsoneditor control.

Methods

(async, inner) esmImport()

The method dynamically imports the jsoneditor module from esm.sh and asssigns the module to the esm variable.

A promise for the import will be assigned to the promise variable on first call.

The method awaits the import promise to resolve the esm module.

(async, inner) esmImport(params) → {object}

The method dynamically imports the jsoneditor module from esm.sh and asssigns the module to the esm variable.

Parameters:
NameTypeDescription
paramsObject

Parameter for the creation of a jsoneditor element.

Properties
NameTypeDescription
params.propsObject

Custom property for the createJSONEditor method.

params.dataObject

JSON data for the jsoneditor content.

Returns:

Exports a jsoneditor instance.

Type: 
object