Menubar"
From Documentation
m (→Example) |
|||
Line 12: | Line 12: | ||
= Example = | = Example = | ||
+ | [[Image:Menu.png]] | ||
− | + | <source lang="xml" > | |
− | + | <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> | ||
+ | </source> | ||
=Supported events= | =Supported events= |
Revision as of 06:44, 11 May 2010
Menubar
Employment/Purpose
A container that usually contains menu elements.
Example
<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
None | None |
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
5.0+ |
Version History
Version | Date | Content |
---|---|---|
5.x.x | x/x/20xx | Initialization |