Howto add submenu under tools menu?
I found this:
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/PopupGuide/MenuModification var popup = document.getElementById("taskPopup");
var newmenu = document.createElement("menu");
popup.appendChild(newmenu);
newmenu.label = "New";
newmenu.appendItem("Document", "doc");
newmenu.appendItem("Image", "image");
It adds the menu to the taskPopup, but only shows label if I remove newmenu.label and use newmenu.setAttribute("label", "tag backup and restore");
It creates this as a menu, but the appenItem does .. nothing??
In the tools menu, I see a new entry like
tag backup and restore>
but it does not show a popup for the submenu.
What am I doing wrong? An help is appreciated.
Klaus
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird