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,