This article is in need of a technical review.

Firefox only

An item that appears on a toolbar. This element should wrap all customizable items (unless they're instances of toolbarbutton). If you don't need the thing you're placing in the toolbar to be customized then it doesn't need to be in a toolbaritem element.

The element is used, for example, to hold the location bar's textbox in Firefox. It is also used to group buttons together so they can be added and removed all at once like Firefox's unified-back-forward-button.

Examples

 toolbaritem_example.jpg

  <toolbaritem>
    <menulist label="Bus">
      <menupopup>
       <menuitem label="Car"/>
       <menuitem label="Taxi"/>
       <menuitem label="Bus" selected="true"/>
       <menuitem label="Train"/>
     </menupopup>
   </menulist>
 </toolbaritem> 

 

    <toolbaritem id="sample-toolbutton-unified">
        <toolbarbutton id="myext-button1" class="toolbarbutton-1" label="Label1" />
        <toolbarbutton id="myext-button2" class="toolbarbutton-1" label="Labe2l" />
    </toolbaritem>

 

Attributes

Inherited from XUL element
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

Properties

Inherited Properties
align, attributes, allowEvents, baseURI, boxObject, builder, childElementCount, childNodes, children, className, clientHeight, clientLeft, clientTop, clientWidth, collapsed, contextMenu, controllers, database, datasources, dir, firstChild, firstElementChild, flex, height, hidden, id, lastChild, lastElementChild, left, localName, maxHeight, maxWidth, menu, minHeight, minWidth, namespaceURI, nextElementSibling, nextSibling, nodeName, nodeType, nodeValue, observes, ordinal, orient, ownerDocument, pack, parentNode, persist, prefix, previousElementSibling, previousSibling, ref, resource, scrollHeight, scrollLeft, scrollTop, scrollWidth, statusText, style, tagName,textContent, tooltip, tooltipText, top, width

Methods

Inherited Methods
addEventListener(), appendChild(), blur, click, cloneNode(), compareDocumentPosition, dispatchEvent(), doCommand, focus, getAttribute(), getAttributeNode(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData

Elements
toolbar, toolbarbutton, toolbargrippy, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbarspring, toolbox

Document Tags and Contributors

Last updated by: Sheppy,