ang-jsoneditor
ang-jsoneditor copied to clipboard
there is not found onCreateMenu function use "ang-jsoneditor": "1.8.1"
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;
};
I want to filter the menus, so can anyone help?