X4 Produktdokumentation

Configuring the Menu Width

The width of a Web application's menu can be defined in the .wad file using the attributes of the Menu element. The Menu element is a direct child element of the WebApp root element.


Possible Attributes


Attribute

Description

unit

Unit for the value specified in attribute width.

Possible values: 

  • pixels: Specification in pixels

  • percents: Specification in percent

If no unit is defined, the specified value for width is interpreted as pixel 

width

Menu width

Possible values:

  • Any integer 

  • auto: Automatic width, which is automatically calculated based on the defined menu items

XML
<WebApp xmlns="http://softproject.de/webapp/1.0">
	  ...
	  <Menu width="30" unit="percents"/>
	  <Modules>
		    ...
	  </Modules>
</WebApp>