Class Ext.Toolbar
| Package: | Ext |
| Class: | Toolbar |
| Extends: | Object |
| Defined In: | Toolbar.js |
Basic Toolbar used by the Grid to create the paging toolbar. This class is reusable but functionality
is limited. Look for more functionality in a future version.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
| |
Toolbar(String/HTMLElement/Element container, [Array buttons]) |
Toolbar |
|
| |
add(Mixed arg1, Mixed arg2, Mixed etc) : void |
Toolbar |
| Adds element(s) to the toolbar - this function takes a variable number of
arguments of mixed type and adds them to t... |
| |
addButton(Object/Array config) : Ext.Toolbar.Button/Array |
Toolbar |
| Add a button (or buttons), see Ext.Toolbar.Button for more info on the config |
| |
addDom(Object config) : Ext.Toolbar.Item |
Toolbar |
| Adds a new element to the toolbar from the passed DomHelper config |
| |
addElement(String/HTMLElement/Element el) : Ext.Toolbar.Item |
Toolbar |
| Adds any standard HTML element to the toolbar |
| |
addItem(Toolbar.Item item) : Ext.Toolbar.Item |
Toolbar |
| Adds any Toolbar.Item or subclass |
| |
addSeparator() : Ext.Toolbar.Item |
Toolbar |
| Adds a separator |
| |
addText(String text) : Ext.Toolbar.Item |
Toolbar |
| Adds text to the toolbar |
| |
getEl() : Ext.Element |
Toolbar |
| Returns the element for this toolbar |
| |
insertButton(Number index, Toolbar.Item/Toolbar.Button item) : Ext.Toolbar.Button/Item |
Toolbar |
| Inserts any Toolbar.Item/Toolbar.Button at the specified index |
Public Events
This class has no public events.
Constructor Details
Toolbar
public function Toolbar(String/HTMLElement/Element container, [Array buttons])
Method Details
add
public function add(Mixed arg1, Mixed arg2, Mixed etc)
Adds element(s) to the toolbar - this function takes a variable number of
arguments of mixed type and adds them to the toolbar...
Parameters:
arg1 : MixedIf arg is a Toolbar.Button, it is added. If arg is a string, it is wrapped in a ytb-text element and added unless the text is "separator" in which case a separator is added. Otherwise, it is assumed the element is an HTMLElement and it is added directly.
arg2 : Mixedetc : Mixed
Returns:
This method is defined by Toolbar.
addButton
public function addButton(Object/Array config)
This method is defined by Toolbar.
addDom
public function addDom(Object config)
Adds a new element to the toolbar from the passed DomHelper config
Parameters:
Returns:
Ext.Toolbar.ItemThe element's item
This method is defined by Toolbar.
addElement
public function addElement(String/HTMLElement/Element el)
Adds any standard HTML element to the toolbar
Parameters:
Returns:
Ext.Toolbar.ItemThe element's item
This method is defined by Toolbar.
addItem
public function addItem(Toolbar.Item item)
Adds any Toolbar.Item or subclass
This method is defined by Toolbar.
addSeparator
public function addSeparator()
Adds a separator
Parameters:
Returns:
Ext.Toolbar.ItemThe separator item
This method is defined by Toolbar.
addText
public function addText(String text)
Adds text to the toolbar
Parameters:
text : StringThe text to add
Returns:
Ext.Toolbar.ItemThe element's item
This method is defined by Toolbar.
getEl
public function getEl()
Returns the element for this toolbar
This method is defined by Toolbar.
insertButton
public function insertButton(Number index, Toolbar.Item/Toolbar.Button item)
Inserts any Toolbar.Item/Toolbar.Button at the specified index
This method is defined by Toolbar.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.