Yuppy
1
Good day,
just a small question. How to disable ContextMenus Item click. I want to disable one option.
Tried doing it with
contextmenu.disableItem(id);
But all it does is changes color of the Item and i still can click on it and get the value.
Snippet if needed : https://webix.com/snippet/4e4fd888
you should use onMenuItemClick
instead of onItemClick
Yuppy
3
@intregal , Thank you as always.
Sergebl
4
Relly, disableItem is not work correctly.
try this workaround:
on:{ onItemClick:function(id){ if(this.hasCss(id, 'webix_disabled')){ this.hide(); return false; } webix.message(this.getItem(id).value); }}