mozilla

Revision 83396 of toolbarpalette

  • Revision slug: XUL/toolbarpalette
  • Revision title: toolbarpalette
  • Revision id: 83396
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:XUL:toolbarpalette]] <<langbot>>

Revision Content

{{ XULRefElem() }}

Firefox only

The item is a palette of available {{ XULElem("toolbar") }} items. It is not displayed, but is used by the toolbar customization dialog to display the list of items. The children of the toolbarpalette should be the complete list of {{ XULElem("toolbarbutton") }}s and {{ XULElem("toolbaritem") }}s that can be added to the toolbar. Do not add the various spacing items, as those are added automatically.

You can add your own custom buttons to the Firefox browser by using an {{ XULElem("overlay") }} that overlays the toolbarpalette with the {{ XULAttr("id") }} BrowserToolbarPalette.

Examples

<toolbarpalette id="BrowserToolbarPalette">
    <toolbarbutton 
       id="toolbarpalette-button" 
       class="toolbarbutton-class"
       label="&mylabel;" 
       tooltiptext="&mytiptext;"
       oncommand="somefunction()" />
</toolbarpalette>

Attributes

{{ XULAttrInheritedWide() }}

Properties

{{ XULPropInheritedWide() }}

Methods

{{ XULMethInheritedWide() }}

Related

Elements
{{ XULElem("toolbar") }}, {{ XULElem("toolbarbutton") }}, {{ XULElem("toolbargrippy") }}, {{ XULElem("toolbaritem") }}, {{ XULElem("toolbarseparator") }}, {{ XULElem("toolbarset") }}, {{ XULElem("toolbarspacer") }}, {{ XULElem("toolbarspring") }}, {{ XULElem("toolbox") }}
{{ languages( { "ja": "ja/XUL/toolbarpalette", "pl": "pl/XUL/toolbarpalette" } ) }}

Revision Source

<div class="noinclude">{{ XULRefElem() }}</div> <p><b><span class="highlightred">Firefox only</span></b>
</p><p>The item is a palette of available {{ XULElem("toolbar") }} items. It is not displayed, but is used by the toolbar customization dialog to display the list of items. The children of the <code>toolbarpalette</code> should be the complete list of {{ XULElem("toolbarbutton") }}s and {{ XULElem("toolbaritem") }}s that can be added to the toolbar. Do not add the various spacing items, as those are added automatically.
</p><p>You can add your own custom buttons to the Firefox browser by using an {{ XULElem("overlay") }} that overlays the <code>toolbarpalette</code> with the {{ XULAttr("id") }} <code>BrowserToolbarPalette</code>.
</p>
<h3 name="Examples"> Examples </h3>
<pre class="eval">&lt;toolbarpalette id="BrowserToolbarPalette"&gt;
    &lt;toolbarbutton 
       id="toolbarpalette-button" 
       class="toolbarbutton-class"
       label="&amp;mylabel;" 
       tooltiptext="&amp;mytiptext;"
       oncommand="somefunction()" /&gt;
&lt;/toolbarpalette&gt;
</pre>
<h3 name="Attributes"> Attributes </h3>
<p>{{ XULAttrInheritedWide() }}
</p>
<h3 name="Properties"> Properties </h3>
<p>{{ XULPropInheritedWide() }}
</p>
<h3 name="Methods"> Methods </h3>
<p>{{ XULMethInheritedWide() }}
</p>
<h3 name="Related"> Related </h3>
<dl><dt> Elements
</dt><dd> {{ XULElem("toolbar") }}, {{ XULElem("toolbarbutton") }}, {{ XULElem("toolbargrippy") }}, {{ XULElem("toolbaritem") }}, {{ XULElem("toolbarseparator") }}, {{ XULElem("toolbarset") }}, {{ XULElem("toolbarspacer") }}, {{ XULElem("toolbarspring") }}, {{ XULElem("toolbox") }}
</dd></dl>
<div class="noinclude">
</div>
{{ languages( { "ja": "ja/XUL/toolbarpalette", "pl": "pl/XUL/toolbarpalette" } ) }}
Revert to this revision