fires every time before opening the context menu
ev | Event | event object |
webix.ui({
view:"spreadsheet",
id:"sheet",
toolbar:"full",
data:spreadsheet_data,
on:{
onContextMenuConfig:function(ev){
if (ev.area == "column" || ev.area == "row") return false;
if (ev.area == "data")
ev.data = [
{ id:"com-1", group:"myContext", value:"Command 1" },
{ id:"com-2", group:"myContext", value:"Command 2" },
{ id:"com-3", group:"myContext", value:"Command 3" }
];
},
}
})
Properties of the ev object: