fires when a menu item has been clicked
id | id | the item id |
webix.ui({
view: "editor",
value: "<h3>Explore the \"File\" and \"Group\" options in the menubar</h3>",
menubar: {
// the default "File" menu item is specified
file: true,
// a custom "Group" menu item with two options is specified
menu: {
value: "Group",
data: [
{ id: "option-1", value: "Option 1" },
{ id: "option-2", value: "Option 2" },
],
},
},
on: {
onMenuItemClick(id) {
webix.message(id);
}
}
});
Back to top