Menubar"
From Documentation
Jumperchen (talk | contribs) m (→Scrollable) |
m |
||
Line 6: | Line 6: | ||
*Java API: <javadoc>org.zkoss.zul.Menubar</javadoc> | *Java API: <javadoc>org.zkoss.zul.Menubar</javadoc> | ||
*JavaScript API: <javadoc directory="jsdoc">zul.menu.Menubar</javadoc> | *JavaScript API: <javadoc directory="jsdoc">zul.menu.Menubar</javadoc> | ||
− | *Style Guide: [ | + | *Style Guide: [[ZK_Style_Guide/XUL_Component_Specification/Menubar| Menubar]] |
= Employment/Purpose = | = Employment/Purpose = |
Revision as of 08:31, 19 January 2011
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>
Properties
Scrollable
The code below demonstrates how easy it is to make the Menubar scrollable!
File:ZKComRef Menubar Scrollable.png
<menubar width="200px" scrollable="true">
<menu label="Menu1">
<menupopup>
<menuitem label="Submenu"/>
</menupopup>
</menu>
<menu label="Menu2">
<menupopup>
<menuitem label="Submenu"/>
</menupopup>
</menu>
<menu label="Menu3">
<menupopup>
<menuitem label="Submenu"/>
</menupopup>
</menu>
</menubar>
Supported Events
None | None |
- Inherited Supported Events: XulElement
Supported Children
* Menu, Menuitem, Menuseparator
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|