/ui/utils/layerJSE

The module exports a default method to create a JSONEditor for JSON layer operations.

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:
NameTypeDescription
targetHTMLElement

The render target for the JSE element.

contentobject

The JSE content

btnobject

A button to add to the menu in the renderMenu method.

(inner) renderMenu()

The renderMenu method filters out most default menu elements and pushes a btn into the menu.