Package: | Roo |
Defined In: | Roo/Toolbar.js. |
Class: | Toolbar |
Subclasses: | Roo.PagingToolbar |
Options | Defined By | |
---|---|---|
container : String/HTMLElement/Element
The id or element that will contain the toolbar
The id or element that will contain the toolbar
|
Roo.Toolbar | |
items : Array
array of button configs or elements to add (will be converted to a MixedCollection)
array of button configs or elements to add (will be converted to a MixedCollection)
|
Roo |
Method | Defined By | |
---|---|---|
new Roo.Toolbar
(Object container)
Create a new Roo.Toolbar
Create a new Roo.Toolbar
|
||
add
(Mixed arg1, Mixed arg2)
Adds element(s) to the toolbar -- this function takes a variable number of
arguments of mixed type and adds them to the toolbar.
Adds element(s) to the toolbar -- this function takes a variable number of
arguments of mixed type and adds them to the toolbar.
|
Roo.Toolbar | |
addButton
(Object/Array config)
:
Roo.Toolbar.Button/Array
Adds a button (or buttons).
Adds a button (or buttons). See {link Roo.Toolbar.Button} for more info on the config.
|
Roo.Toolbar | |
addDom
(Object config)
:
Roo.Toolbar.Item
Adds a new element to the toolbar from the passed {link Roo.DomHelper} config.
Adds a new element to the toolbar from the passed {link Roo.DomHelper} config.
|
Roo.Toolbar | |
addElement
(String/HTMLElement/Element el)
:
Roo.Toolbar.Item
Adds any standard HTML element to the toolbar
Adds any standard HTML element to the toolbar
|
Roo.Toolbar | |
addField
(Roo.form.Field field)
:
Roo.ToolbarItem
Adds a dynamically rendered Roo.form field (TextField, ComboBox, etc).
Adds a dynamically rendered Roo.form field (TextField, ComboBox, etc).
Note: the field should not have been rendered yet. For a field that has already been rendered, use {link addElement}.
|
Roo.Toolbar | |
addFill
()
:
Roo.Toolbar.Fill
Adds a fill element that forces subsequent additions to the right side of the toolbar
Adds a fill element that forces subsequent additions to the right side of the toolbar
|
Roo.Toolbar | |
addItem
(Roo.Toolbar.Item item)
:
Roo.Toolbar.Item
Adds any Toolbar.Item or subclass
Adds any Toolbar.Item or subclass
|
Roo.Toolbar | |
addSeparator
()
:
Roo.Toolbar.Item
Adds a separator
Adds a separator
|
Roo.Toolbar | |
addSpacer
()
:
Roo.Toolbar.Spacer
Adds a spacer element
Adds a spacer element
|
Roo.Toolbar | |
addText
(String text)
:
Roo.Toolbar.Item
Adds text to the toolbar
Adds text to the toolbar
|
Roo.Toolbar | |
Roo.Toolbar | ||
getEl
()
:
Roo.Element
Returns the Element for this toolbar.
Returns the Element for this toolbar.
|
Roo.Toolbar | |
hide
()
Hide the toolbar
Hide the toolbar
|
Roo.Toolbar | |
insertButton
(Number index, Object/Roo.Toolbar.Item/Roo.Toolbar.Button (may be Array) item)
:
Roo.Toolbar.Button/Item
Inserts any {link Roo.Toolbar.Item}/{link Roo.Toolbar.Button} at the specified index.
Inserts any {link Roo.Toolbar.Item}/{link Roo.Toolbar.Button} at the specified index.
|
Roo.Toolbar | |
show
()
Show the toolbar
Show the toolbar
|
Roo.Toolbar |