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: […]
},
…