Menu Item Aligment

Hi,

Have a simple code here:

menu = new dhtmlXMenuObject(document.body);
menu.loadXMLString(“”);

We want to make File Item to be align in the left side and Help on the right side of the Menu. Is there a way to achieve this in just one Menu Object.

We tried menu.setAlign(“right”); but all Items went to right side.

Thanks,
Joseph

Hi,

Menu doesn’t provide such a functionality. Possibly you could use toolbar instead of it. It has “spacer” feature and select item to display options in drop-down list:

dhtmlx.com/docs/products/dht … pacer.html

Is it still not possible to use a spacer (like in a toolbar) on a menu? Is there a hack you could do to simulate this?

Unfortunately it is still not available to add a spacer in the dhtmlxMenu.