Hello, please how can I create a yui button of type "menu" that has a
menu in which on of the menu items has another submenu.
I tried this :
// product menu controls
var productsMenu = [
{text:"add product"},
{text:"edit product", submenu : [
{text:"edit product data"},
{text:"edit product views"},
{text:"edit product Dirs."}
]
},
{text:"delete product", value:"deleteproduct"}
];
var productTool = new YAHOO.widget.Button({
type : "menu",
label : "Products",
id : "addProductTool",
container : "toolbar",
menu : productsMenu });
an arrow shows beside the edit product menuitem but no sub menu is
displayed when the mouse is over it.
How can I add a submenu to a menuitem of the menu button.
Thanks
Charles Odili,
University of Benin,
Nigeria.
.