Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Widget Cheatsheet

See the Periodic Table of XUL for more examples.

Description
<menu value="Menu Widget">
  <menupopup>
    <menuitem value="foo" />
    <menuitem value="shoo" />
    <menu value="sub">
      <menupopup>
        <menuitem value="subitem" />
      </menupopup>
    </menu>
  </menupopup>
</menu>
Image:XUL cheat menulist1.gif
<menulist value="Menulist Element">
  <menupopup>
    <menuitem value="foo" />
    <menuitem value="shoo" />
    <menuitem value="boo" />
  </menupopup>
</menulist>
Image:XUL_cheat_menubutton.gif
<menubutton src="back.gif">
  <menupopup>
    <menuitem value="foo" />
    <menuitem value="shoo" />
    <menuitem value="boo" />
  </menupopup>
</menubutton>

Document Tags and Contributors

 Contributors to this page: Sheppy, MatrixFrog, Pmash
 Last updated by: Sheppy,