parent.append("<p>and now the vertical menu...</p>");
//now create another menu but vertical
NodeBase vMenuParent = parent.appendChild(YUIUtil.NODE(Y, "tag: 'div'", "width: '80px'"));
parent.append(vMenuParent);
Node menu2 = YUIUtil.makeMenu(Y, false, new Node[]{
YUIUtil.makeMenuItem(Y, "YAHOO", new Node[]{
YUIUtil.makeMenuItem(Y, "Search..."),
YUIUtil.makeMenuItem(Y, "Mail..."),
YUIUtil.makeMenuItem(Y, "News", new Node[]{
YUIUtil.makeMenuItem(Y, "London 2012", null),
YUIUtil.makeMenuItem(Y, "Uruguay football champion", null)
}),
YUIUtil.makeMenuItem(Y, "Other"),
}),
YUIUtil.makeMenuItem(Y, "Google", new Node[]{
YUIUtil.makeMenuItem(Y, "News", null),
YUIUtil.makeMenuItem(Y, "Docs")
})
});
vMenuParent.append(menu2);
menu2.plug(Y.Plugin().NodeMenuNav());
for(Node n : new Node[]{menu1, menu2}) {
n. delegate("click", new NodeEventDelegateCallback() {
@Override