/ui/elements/jsoneditor
The module dynamically imports the vanilla-jsoneditor from esm.sh and exports a utility method to create a jsoneditor control.
- Source
Requires
Methods
(async, inner) createJSONEditor(params) → {Promise.<(Object|Error)>}
The method dynamically imports the jsoneditor module from esm.sh and asssigns the module to the esm variable.
Parameters:
Properties| Name | Type | Description |
|---|---|---|
params | Object | Parameter for the creation of a jsoneditor element. |
| Name | Type | Description |
|---|---|---|
params.props | Object | Custom property for the createJSONEditor method. |
params.data | Object | JSON data for the jsoneditor content. |
Returns:
Exports a jsoneditor instance or an error if the jsoneditor module could not be imported.
- Type:
- Promise.<(Object|Error)>