gwt - Menu or MenuButton with separate click handler -
i'm looking widget this.
clicking "view" , triangle (drop down icon) need perform 2 different functions.
clicking triangle opening menu.
i tried creating 2 buttons emulate, 2 buttons have space in between them.
how can eliminate space between buttons or, there convenient way accomplish this?
thank all!!
an iconmenubutton (which sub class of iconbutton) provide need.
menu menu = new menu(); menuitem newitem = new menuitem("new"); menuitem openitem = new menuitem("open"); menuitem saveitem = new menuitem("save"); menuitem saveasitem = new menuitem("save as"); menu.setitems(newitem, openitem, saveitem, saveasitem); iconmenubutton menubutton = new iconmenubutton("view", menu);
also check smartgwt samples i've given in comment , ribbonbar sample.
Comments
Post a Comment