XUL:toolbox
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
A container for toolbars. It is a type of box but defaults to vertical orientation. If a toolbar is placed inside a toolbox, a grippy is displayed on its left or upper edge. The user may click the grippy to collapse the toolbar. If multiple toolbars are placed in the same toolbox, they will all collapse into the same row. The Firefox browser does not have grippies so toolbars cannot be collapsed and expanded.
More information is available in the XUL tutorial.
- Properties
- accessible, customToolbarCount, palette, toolbarset
- Methods
- appendCustomToolbar, collapseToolbar, expandToolbar
[edit] Examples
(example needed)
[edit] Attributes
|
Inherited from XUL element |
[edit] Properties
|
Inherited from XUL element Inherited from DOM element |
- accessible
- Type: nsIAccessible
- Returns the accessibility object for the element.
- customToolbarCount
- Firefox only
- Type: integer
- The number of custom toolbars currently within the toolbox.
- palette
- Firefox only
- Type: element
- The toolbarpalette within the toolbox.
- toolbarset
- Firefox only
- Type: element
- The toolbarset within the toolbox.
[edit] Methods
|
Inherited from XUL element Inherited from DOM element |
- appendCustomToolbar( name, currentset )
- Firefox only
- Return type: element
- Adds a custom toolbar to the toolbox with the given name. You can supply a comma-separated list of toolbar item ids as the second argument to add some items by default. The method returns the DOM element for the created toolbar.
- collapseToolbar( toolbar )
- Not in Firefox
- Return type: no return value
- Collapse the given toolbar which should be contained within the toolbox.
- expandToolbar( toolbar )
- Not in Firefox
- Return type: no return value
- Expand the given toolbar which should be contained in the toolbox.
[edit] Related
- Elements
- toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbarspring
- Interfaces
- nsIAccessibleProvider