How can I set the id of a webix submenu?

edited September 10 in General

I want to be able to attach events to submenu items like so:

$$("MySubMenu").attachEvent("onItemClick", function (id) {
____switch(id) ...
}

However, i don't see a way to give a submenu an ID. Maybe something like this would be helpful:

...
submenu: {
____id: "MySubMenu",
____data: [...]
},
...

Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!