Menu demo

This page displays a menubar component with menuitem customized.
Notice the attributes disabled and visible. Menu 1 is not visible (actually, not rendered) and Menu 2 is disabled.
Menu 4 got its label automatically populated from the current page's property file, using its id.

In Action

TML Source code

	<ex:menubar t:id="menubar">
		<ex:menuitem visible="false">
			Menu 1
		<ex:menuitem disabled="true">
			Menu 2
				<ex:menuitem label="literal:Not displayed because disabled"/>
			Menu 3
		<ex:menuitem t:id="menu4"/>

This key is defined in the property file of the current page :

menu4-label=Menu 4 from properties