Categories | Question details Back To List | ||
Add Divider using Script initialization DHTMLX Menu Hi, Im Tring to add a divider and images icons on my menu, using scripting lake this, (Im not usig XML initialization - <divider id="div_2" /> It works fine but my menu is dinamic) var item = new dhtmlXMenuItemObject("file_id","<? echo $row[0]; ?>",""); item.setImage("j_arrow_down.png"); <----------------------------------------------- Dosntīt Show Image aMenuBar.addItem(aMenuBar,item); aMenuBar.addItem(divider,1); <----------------------------------------------- Dosntīt Show Divider var subMenu = new dhtmlXMenuBarPanelObject(aMenuBar,item,false,120,true); Please let me know how can I do That. Thank You so much Answer posted by Support on Aug 18, 2008 01:44 >>var item = new dhtmlXMenuItemObject("file_id","<? echo $row[0]; ?>","");
>>item.setImage("j_arrow_down.png"); var item = new dhtmlXMenuItemObject("file_id","<? echo $row[0]; ?>","","j_arrow_down.png"); >>aMenuBar.addItem(divider,1); var item = new dhtmlXMenuDividerYObject("id_0"); aMenuBar.addItem(aMenuBar,item); http://dhtmlx.com/docs/products/dhtmlxMenu/samples/initialization_loading/menu_building_script.html?un=1219049998000 |