Menu Item Aligment


Have a simple code here:

menu = new dhtmlXMenuObject(document.body);

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.



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: … 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.