/ui/elements/jsoneditor
The module dynamically imports the vanilla-jsoneditor from esm.sh and exports a utility method to create a jsoneditor control.
- Source
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:
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