MCPcopy Create free account
hub / github.com/json-editor/json-editor / setValue

Method setValue

src/core.js:119–124  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

117 }
118
119 setValue (value) {
120 if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete')
121
122 this.root.setValue(value)
123 return this
124 }
125
126 validate (value) {
127 if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete')

Callers 6

loadMethod · 0.45
editor.spec.jsFile · 0.45
validator.spec.jsFile · 0.45
array.spec.jsFile · 0.45
table.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected