/ui/utils/layerJSE
The module exports a default method to create a JSONEditor for JSON layer operations.
- Source
Requires
Methods
(inner) layerJSE(target, content, btn)
The method calls upon the jsoneditor element method to create a JSE instance with a custom render menu.
Parameters:
Name | Type | Description |
---|---|---|
target | HTMLElement | The render target for the JSE element. |
content | object | The JSE content |
btn | object | A button to add to the menu in the renderMenu method. |
- Source
(inner) renderMenu()
The renderMenu method filters out most default menu elements and pushes a btn into the menu.
- Source