menu

  • 리비전 슬러그: XUL/menu
  • 리비전 제목: menu
  • 리비전 아이디: 67994
  • 제작일시:
  • 만든이: Yongsuhb.e
  • 현재 리비전인가요? 아니오
  • 댓글 page created, 374 words added

리비전 내용

{{ XULRefElem() }}

An element, much like a {{ XULElem("button") }}, that is placed on a {{ XULElem("menubar") }}. When the user clicks the menu element, the child {{ XULElem("menupopup") }} of the menu will be displayed. This element is also used to create submenus.

More information is available in the XUL tutorial.

Attributes
{{ PrefAnch("a-", "acceltext") }}, {{ PrefAnch("a-", "accesskey") }}, {{ PrefAnch("a-", "allowevents") }}, {{ PrefAnch("a-", "command") }}, {{ PrefAnch("a-", "crop") }}, {{ PrefAnch("a-", "disabled") }}, {{ PrefAnch("a-", "image") }}, {{ PrefAnch("a-", "label") }}, {{ PrefAnch("a-", "menuactive") }}, {{ PrefAnch("a-", "open") }}, {{ PrefAnch("a-", "sizetopopup") }}, {{ PrefAnch("a-", "tabindex") }}, {{ PrefAnch("a-", "value") }}
Properties
{{ PrefAnch("p-", "accessibleType") }}, {{ PrefAnch("p-", "accessKey") }}, {{ PrefAnch("p-", "command") }}, {{ PrefAnch("p-", "menuitem.control", "control") }}, {{ PrefAnch("p-", "crop") }}, {{ PrefAnch("p-", "disabled") }}, {{ PrefAnch("p-", "image") }}, {{ PrefAnch("p-", "itemCount") }}, {{ PrefAnch("p-", "label") }}, {{ PrefAnch("p-", "labelElement") }}, {{ PrefAnch("p-", "menupopup") }}, {{ PrefAnch("p-", "menu.open", "open") }}, {{ PrefAnch("p-", "parentContainer") }}, {{ PrefAnch("p-", "selected") }}, {{ PrefAnch("p-", "tabIndex") }}, {{ PrefAnch("p-", "value") }}
Methods
{{ PrefAnch("m-", "appendItem") }}, {{ PrefAnch("m-", "getIndexOfItem") }}, {{ PrefAnch("m-", "getItemAtIndex") }}, {{ PrefAnch("m-", "insertItemAt") }}, {{ PrefAnch("m-", "removeItemAt") }}
Style classes
{{ PrefAnch("s-", "menu-iconic") }}

Example

<menubar id="sample-menubar">
  <menu id="file-menu" label="File">
    <menupopup id="file-popup">
      <menuitem label="New"/>
      <menuitem label="Open"/>
      <menuitem label="Save"/>
      <menuseparator/>
      <menuitem label="Exit"/>
    </menupopup>
  </menu>
  <menu id="edit-menu" label="Edit">
    <menupopup id="edit-popup">
      <menuitem label="Undo"/>
      <menuitem label="Redo"/>
    </menupopup>
  </menu>
</menubar>

Attributes

{{ XULAttrInherited() }}{{ XULAttrInc("acceltext") }}{{ XULAttrInc("accesskey") }}{{ XULAttrInc("allowevents") }}{{ XULAttrInc("crop") }}{{ XULAttrInc("disabled") }}{{ XULAttrInc("label") }}{{ XULAttrInc("menuactive") }}{{ XULAttrInc("open") }}{{ XULAttrInc("sizetopopup") }}{{ XULAttrInc("value") }}

Properties

{{ XULPropInherited() }}{{ XULPropInc("accessibleType") }}{{ XULPropInc("menuitem.control") }}{{ XULPropInc("itemCount") }}{{ XULPropInc("menupopup") }}{{ XULPropInc("menu.open") }}{{ XULPropInc("parentContainer") }}{{ XULPropInc("value") }}

Methods

{{ XULMethInherited() }}{{ XULMethInc("appendItem") }}{{ XULMethInc("getIndexOfItem") }}{{ XULMethInc("getItemAtIndex") }}{{ XULMethInc("insertItemAt") }}{{ XULMethInc("removeItemAt") }}

Style classes

{{ XULStyleInc("menu-iconic") }}

Related

Elements
{{ XULElem("menubar") }}, {{ XULElem("menuitem") }}, {{ XULElem("menulist") }}, {{ XULElem("menupopup") }}, {{ XULElem("menuseparator") }}
Interfaces
{{ interface("nsIAccessibleProvider") }}, {{ interface("nsIDOMXULContainerElement") }}, {{ interface("nsIDOMXULContainerItemElement") }}, {{ interface("nsIDOMXULSelectControlItemElement") }}

{{ languages( { "fr": "fr/XUL/menu", "ja": "ja/XUL/menu", "pl": "pl/XUL/menu" } ) }}

리비전 소스

<div class="noinclude">{{ XULRefElem() }}</div>
<p>An element, much like a {{ XULElem("button") }}, that is placed on a {{ XULElem("menubar") }}. When the user clicks the <code>menu</code> element, the child {{ XULElem("menupopup") }} of the menu will be displayed. This element is also used to create submenus.</p>
<p>More information is available in the <a href="/en/XUL_Tutorial/Simple_Menu_Bars" title="en/XUL_Tutorial/Simple_Menu_Bars">XUL tutorial</a>.</p>
<dl> <dt>Attributes</dt> <dd>{{ PrefAnch("a-", "acceltext") }}, {{ PrefAnch("a-", "accesskey") }}, {{ PrefAnch("a-", "allowevents") }}, {{ PrefAnch("a-", "command") }}, {{ PrefAnch("a-", "crop") }}, {{ PrefAnch("a-", "disabled") }}, {{ PrefAnch("a-", "image") }}, {{ PrefAnch("a-", "label") }}, {{ PrefAnch("a-", "menuactive") }}, {{ PrefAnch("a-", "open") }}, {{ PrefAnch("a-", "sizetopopup") }}, {{ PrefAnch("a-", "tabindex") }}, {{ PrefAnch("a-", "value") }}</dd>
</dl>
<dl> <dt>Properties</dt> <dd>{{ PrefAnch("p-", "accessibleType") }}, {{ PrefAnch("p-", "accessKey") }}, {{ PrefAnch("p-", "command") }}, {{ PrefAnch("p-", "menuitem.control", "control") }}, {{ PrefAnch("p-", "crop") }}, {{ PrefAnch("p-", "disabled") }}, {{ PrefAnch("p-", "image") }}, {{ PrefAnch("p-", "itemCount") }}, {{ PrefAnch("p-", "label") }}, {{ PrefAnch("p-", "labelElement") }}, {{ PrefAnch("p-", "menupopup") }}, {{ PrefAnch("p-", "menu.open", "open") }}, {{ PrefAnch("p-", "parentContainer") }}, {{ PrefAnch("p-", "selected") }}, {{ PrefAnch("p-", "tabIndex") }}, {{ PrefAnch("p-", "value") }}</dd>
</dl>
<dl> <dt>Methods</dt> <dd>{{ PrefAnch("m-", "appendItem") }}, {{ PrefAnch("m-", "getIndexOfItem") }}, {{ PrefAnch("m-", "getItemAtIndex") }}, {{ PrefAnch("m-", "insertItemAt") }}, {{ PrefAnch("m-", "removeItemAt") }}</dd> <dt>Style classes</dt> <dd>{{ PrefAnch("s-", "menu-iconic") }}</dd>
</dl>
<h3 name="Example">Example</h3>
<pre class="brush: xml">&lt;menubar id="sample-menubar"&gt;
  &lt;menu id="file-menu" label="File"&gt;
    &lt;menupopup id="file-popup"&gt;
      &lt;menuitem label="New"/&gt;
      &lt;menuitem label="Open"/&gt;
      &lt;menuitem label="Save"/&gt;
      &lt;menuseparator/&gt;
      &lt;menuitem label="Exit"/&gt;
    &lt;/menupopup&gt;
  &lt;/menu&gt;
  &lt;menu id="edit-menu" label="Edit"&gt;
    &lt;menupopup id="edit-popup"&gt;
      &lt;menuitem label="Undo"/&gt;
      &lt;menuitem label="Redo"/&gt;
    &lt;/menupopup&gt;
  &lt;/menu&gt;
&lt;/menubar&gt;
</pre>
<h3 name="Attributes">Attributes</h3>
<p>{{ XULAttrInherited() }}{{ XULAttrInc("acceltext") }}{{ XULAttrInc("accesskey") }}{{ XULAttrInc("allowevents") }}{{ XULAttrInc("crop") }}{{ XULAttrInc("disabled") }}{{ XULAttrInc("label") }}{{ XULAttrInc("menuactive") }}{{ XULAttrInc("open") }}{{ XULAttrInc("sizetopopup") }}{{ XULAttrInc("value") }}</p>
<h3 name="Properties">Properties</h3>
<p>{{ XULPropInherited() }}{{ XULPropInc("accessibleType") }}{{ XULPropInc("menuitem.control") }}{{ XULPropInc("itemCount") }}{{ XULPropInc("menupopup") }}{{ XULPropInc("menu.open") }}{{ XULPropInc("parentContainer") }}{{ XULPropInc("value") }}</p>
<h3 name="Methods">Methods</h3>
<p>{{ XULMethInherited() }}{{ XULMethInc("appendItem") }}{{ XULMethInc("getIndexOfItem") }}{{ XULMethInc("getItemAtIndex") }}{{ XULMethInc("insertItemAt") }}{{ XULMethInc("removeItemAt") }}</p>
<h3 name="Style_classes">Style classes</h3>
<p>{{ XULStyleInc("menu-iconic") }}</p>
<h3 name="Related">Related</h3>
<dl> <dt>Elements</dt> <dd>{{ XULElem("menubar") }}, {{ XULElem("menuitem") }}, {{ XULElem("menulist") }}, {{ XULElem("menupopup") }}, {{ XULElem("menuseparator") }}</dd>
</dl>
<dl> <dt>Interfaces</dt> <dd>{{ interface("nsIAccessibleProvider") }}, {{ interface("nsIDOMXULContainerElement") }}, {{ interface("nsIDOMXULContainerItemElement") }}, {{ interface("nsIDOMXULSelectControlItemElement") }}</dd>
</dl>
<p>{{ languages( { "fr": "fr/XUL/menu", "ja": "ja/XUL/menu", "pl": "pl/XUL/menu" } ) }}</p>
Revert to this revision