/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) → {object}
The method dynamically imports the jsoneditor module from esm.sh and asssigns the module to the esm variable.
Parameters:
PropertiesName | 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.
- Type:
- object