MCPcopy
hub / github.com/json-editor/json-editor / createEditor

Method createEditor

src/core.js:231–235  ·  view source on GitHub ↗
(editorClass, options, depthCounter = 1)

Source from the content-addressed store, hash-verified

229 }
230
231 createEditor (editorClass, options, depthCounter = 1) {
232 options = extend({}, editorClass.options || {}, options)
233 // eslint-disable-next-line new-cap
234 return new editorClass(options, JSONEditor.defaults, depthCounter)
235 }
236
237 onChange (eventData) {
238 if (!this.ready) return

Callers 7

loadMethod · 0.95
getElementEditorMethod · 0.80
buildChildEditorMethod · 0.80
preBuildMethod · 0.80
addObjectPropertyMethod · 0.80
buildChildEditorMethod · 0.80
getElementEditorMethod · 0.80

Calls 1

extendFunction · 0.90

Tested by

no test coverage detected