Menu demo

Description
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>
		<ex:menuitem disabled="true">
			Menu 2
			<ex:submenu>
				<ex:menuitem label="literal:Not displayed because disabled"/>
			</ex:submenu>
		</ex:menuitem>	
		<ex:menuitem>
			Menu 3
		</ex:menuitem>
		<ex:menuitem t:id="menu4"/>
	</ex:menubar>
		
	



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


menu4-label=Menu 4 from properties