We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af8ab7 commit da698a7Copy full SHA for da698a7
panel/models/jsoneditor.ts
@@ -33,7 +33,7 @@ export class JSONEditorView extends HTMLBoxView {
33
this.editor.options.templates = this.model.templates
34
})
35
this.on_change([menu], () => {
36
- this.editor.options.menu = this.model.menu
+ this.editor.options.mainMenuBar = this.model.menu
37
38
this.on_change([search], () => {
39
this.editor.options.search = this.model.search
@@ -64,7 +64,7 @@ export class JSONEditorView extends HTMLBoxView {
64
super.render()
65
const mode = this.model.disabled ? "view": this.model.mode
66
this.editor = new (window as any).JSONEditor(this.shadow_el, {
67
- menu: this.model.menu,
+ mainMenuBar: this.model.menu,
68
mode,
69
onChangeJSON: (json: any) => {
70
this.model.data = json
0 commit comments