MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

toolbaritem

Change Revisions

Revision 33209:

Revision 33209 by diyoji on

Revision 33210:

Revision 33210 by raffaele181188 on

Title:
toolbaritem
toolbaritem
Slug:
XUL/toolbaritem
XUL/toolbaritem
Tags:
NeedsTechnicalReview, NeedsHelp, "MDC Project", "XUL Reference", "XUL Elements"
NeedsTechnicalReview, NeedsHelp, "MDC Project", "XUL Reference", "XUL Elements"
Content:

Revision 33209
Revision 33210
n14      An item that appears on a {{ XULElem("toolbar") }}. This eln14      An item that appears on a {{ XULElem("toolbar") }}. This el
>ement should wrap all items that are not buttons, which should in>ement should wrap all items that are not buttons, which should in
>stead be created using the {{ XULElem("toolbarbutton") }} element>stead be created using the {{ XULElem("toolbarbutton") }} element
>. The element is used, for example, to hold the location bar's {{>. The element is used, for example, to hold the location bar's {{
> XULElem("textbox") }} in Firefox.> XULElem("textbox") }} in Firefox. It is also used to group butto
 >ns together so they can be added and removed all at once (as in F
 >irefox <em>unified-back-forward-button</em>).
n20      &nbsp;<img alt="toolbaritem_example.jpg" class="internal den20      &nbsp;<img alt="toolbaritem_example.jpg" class="internal de
>fault" src="/@api/deki/files/2903/=toolbaritem_example.jpg" style>fault" src="/@api/deki/files/2903/=toolbaritem_example.jpg" style
>="width: 205px; height: 119px;"><img alt="" fileid="0" src="file:>="width: 205px; height: 119px;">
>///Users/ian/Library/Caches/TemporaryItems/moz-screenshot-1.jpg"> 
><img alt="" fileid="0" src="file:///Users/ian/Library/Caches/Temp 
>oraryItems/moz-screenshot.jpg"> 
n22    <p style="margin-left: 40px;">n22    <pre class="eval">
23      <span style="font-size: smaller;">&nbsp;<code>&nbsp;&nbsp;&23  &lt;toolbaritem&gt;
>lt;toolbaritem&gt;<br> 
24      &nbsp; &nbsp;&nbsp;&lt;menulist label="Bus"&gt;<br>24    &lt;menulist label="Bus"&gt;
25      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;menupopup&gt;<br>25      &lt;menupopup&gt;
26      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;menuitem label="Car"/&g26       &lt;menuitem label="Car"/&gt;
>t;<br> 
27      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;menuitem label="Taxi"/&27       &lt;menuitem label="Taxi"/&gt;
>gt;<br> 
28      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;menuitem label="Bus" se28       &lt;menuitem label="Bus" selected="true"/&gt;
>lected="true"/&gt;<br> 
29      &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&lt;menuitem label="Tr29       &lt;menuitem label="Train"/&gt;
>ain"/&gt;<br> 
30      &nbsp;&nbsp; &nbsp;&nbsp;&lt;/menupopup&gt;<br>30     &lt;/menupopup&gt;
31      &nbsp;&nbsp;&nbsp;&lt;/menulist&gt;<br>31   &lt;/menulist&gt;
32      &nbsp;&lt;/toolbaritem&gt;</code></span>32 &lt;/toolbaritem&gt; 
33</pre>
34    <p>
35      &nbsp;
tt37    <p>
38      <img alt="" class="internal" src="/@api/deki/files/4237/=to
 >olbaritem.png" style="width: 250px; height: 182px;">
39    </p>
40    <pre class="eval">
41    &lt;toolbaritem id="sample-toolbutton-unified"&gt;
42        &lt;toolbarbutton id="myext-button1" class="toolbarbutton
 >-1" label="Label1" /&gt;
43        &lt;toolbarbutton id="myext-button2" class="toolbarbutton
 >-1" label="Labe2l" /&gt;
44    &lt;/toolbaritem&gt;
45</pre>

Back to History