Menubar"

From Documentation
Line 12: Line 12:
 
= Example =
 
= Example =
  
[[Image:Menu.png]]
+
[[Image:ZKComRef_Menubar.png]]
  
 
<source lang="xml" >
 
<source lang="xml" >

Revision as of 04:13, 16 November 2010

Menubar

Employment/Purpose

A container that usually contains menu elements.

Example

ZKComRef Menubar.png

<menubar id="menubar">
	<menu label="File">
		<menupopup onOpen="alert(self.id)">
			<menuitem label="New" onClick="alert(self.label)" />
			<menuitem label="Open" onClick="alert(self.label)" />
			<menuitem label="Save" onClick="alert(self.label)" />
			<menuseparator />
			<menuitem label="Exit" onClick="alert(self.label)" />
		</menupopup>
	</menu>
	<menu label="Help">
		<menupopup>
			<menuitem label="Index" onClick="alert(self.label)" />
			<menu label="About">
				<menupopup>
					<menuitem label="About ZK" onClick="alert(self.label)" />
					<menuitem label="About Potix" onClick="alert(self.label)" />
				</menupopup>
			</menu>
		</menupopup>
	</menu>
</menubar>

Supported events

Name
Event Type
None None

Supported Children

* Menu,  Menuitem

Use cases

Version Description Example Location
     

Version History

Version Date Content
     



Last Update : 2010/11/16

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.