mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
155 stars 89 forks source link

there is not found onCreateMenu function use "ang-jsoneditor": "1.8.1" #107

Closed MichaelPanwenjie closed 1 year ago

MichaelPanwenjie commented 1 year ago

Describe the bug When i use $ npm install --save jsoneditor ang-jsoneditor to install ang-jsoneditor package with "ang-jsoneditor": "1.8.1" in package.json file, there is not found onCreateMenu function

this.editorOptions.onCreateMenu = (items, node) => { // this line error not found onCreateMenu items = items.filter(function (item) { return item.type !== 'separator' });
return items; }; image

I want to filter the menus, so can anyone help?

mariohmol commented 1 year ago

Hi, thanks for pointing that out. released on v3.0.1