adds a dropdown menu at the top of SpreadSheet
webix.ui({
view:"spreadsheet",
data: math_data_simple,
menu: true
});
If set to true, the property adds a default menu. To customize it,the menu property must be an array of strings (for a one-level menu):
webix.ready(function(){
webix.ui({
view:"spreadsheet",
data:base_data,
menu:["add-image-cell", "add-image-top"]
});
});
Or an array of objects (for a multi-level menu):
menu: [
{
id: "insert",
submenu: [
{
id: "image",
submenu: [{ id: "add-image-cell" }, { id: "add-image-top" }],
},
],
},
{ id: "data", submenu: [{ id: "create-filter" }] },
];