Hello
this is my code
var menuEsterno = {
view: "menu", id: "menuEsterno",
width: 180, layout: "y", select: true,
template: "<span class='webix_icon fa-#icon#'></span> #value# ",
data: [
{ value: "Dashboard", id: "start", icon: "briefcase" },
{ value: "tablet", id: "mydash", icon: "arrows" },
{ value: "GridLayout", id: "mygrid", icon: "user" },
{ value: "processi", id: "data", icon: "envelope-o" },
{ value: "test", id: "widgets", icon: "briefcase" }
],
click: (id) => {
this.show(id); //this work
},
on: {
onMenuItemClick: function (id) {
this.show(id); //this don't work
}
}
};
I don’t understand why in “onMenuItemClick” the function show don’t work