1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.Toolbar-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.Toolbar-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.Toolbar-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="inner-link" href="#Ext.Toolbar-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7 <a class="bookmark" href="../docs/?class=Ext.Toolbar"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
9 <div class="inheritance res-block">
10 <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11 <img src="resources/elbow-end.gif"/><a ext:cls="Ext.Component" ext:member="" href="output/Ext.Component.html">Component</a>
12 <img src="resources/elbow-end.gif"/><a ext:cls="Ext.BoxComponent" ext:member="" href="output/Ext.BoxComponent.html">BoxComponent</a>
13 <img src="resources/elbow-end.gif"/>Toolbar</pre></div>
14 <h1>Class Ext.Toolbar</h1>
15 <table cellspacing="0">
16 <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
17 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Toolbar.js" target="_blank">Toolbar.js</a></td></tr>
18 <tr><td class="label">Class:</td><td class="hd-info">Toolbar</td></tr>
19 <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.PagingToolbar" href="output/Ext.PagingToolbar.html">PagingToolbar</a>, <a ext:cls="Ext.StatusBar" href="output/Ext.StatusBar.html">StatusBar</a></td></tr>
20 <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.BoxComponent" ext:member="" href="output/Ext.BoxComponent.html">BoxComponent</a></td></tr>
22 <div class="description">
24 Basic Toolbar class. Toolbar elements can be created explicitly via their constructors, or implicitly
25 via their xtypes. Some items also have shortcut strings for creation. </div>
27 <div class="hr"></div>
28 <a id="Ext.Toolbar-configs"></a>
29 <h2>Config Options</h2>
30 <table cellspacing="0" class="member-table">
32 <th class="sig-header" colspan="2">Config Options</th>
33 <th class="msource-header">Defined By</th>
35 <tr class="config-row inherited">
\r
36 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
38 <a id="Ext.Toolbar-allowDomMove"></a>
\r
39 <b>allowDomMove</b> : Boolean <div class="mdesc">
\r
40 Whether the component can move the Dom node when rendering (defaults to true). </div>
\r
42 <td class="msource"><a ext:cls="Ext.Component" ext:member="#allowDomMove" href="output/Ext.Component.html#allowDomMove">Component</a></td>
\r
44 <tr class="config-row inherited alt expandable">
\r
45 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
47 <a id="Ext.Toolbar-applyTo"></a>
\r
48 <b>applyTo</b> : Mixed <div class="mdesc">
\r
49 <div class="short">The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document ...</div>
\r
51 The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for <a ext:cls="Ext.Component" ext:member="renderTo" href="output/Ext.Component.html#renderTo">renderTo</a> will be ignored and the target element's parent node will automatically be used as the component's container. </div>
\r
54 <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyTo" href="output/Ext.Component.html#applyTo">Component</a></td>
\r
56 <tr class="config-row inherited expandable">
\r
57 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
59 <a id="Ext.Toolbar-autoHeight"></a>
\r
60 <b>autoHeight</b> : Boolean <div class="mdesc">
\r
61 <div class="short">True to use height:'auto', false to use fixed height (defaults to false). Note: Although many components inherit this...</div>
\r
63 True to use height:'auto', false to use fixed height (defaults to false). <b>Note</b>: Although many components inherit this config option, not all will function as expected with a height of 'auto'. Setting autoHeight:true means that the browser will manage height based on the element's contents, and that Ext will not manage it at all. </div>
\r
66 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#autoHeight" href="output/Ext.BoxComponent.html#autoHeight">BoxComponent</a></td>
\r
68 <tr class="config-row inherited alt expandable">
\r
69 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
71 <a id="Ext.Toolbar-autoShow"></a>
\r
72 <b>autoShow</b> : Boolean <div class="mdesc">
\r
73 <div class="short">True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render...</div>
\r
75 True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false). </div>
\r
78 <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td>
\r
80 <tr class="config-row inherited expandable">
\r
81 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
83 <a id="Ext.Toolbar-autoWidth"></a>
\r
84 <b>autoWidth</b> : Boolean <div class="mdesc">
\r
85 <div class="short">True to use width:'auto', false to use fixed width (defaults to false). Note: Although many components inherit this c...</div>
\r
87 True to use width:'auto', false to use fixed width (defaults to false). <b>Note</b>: Although many components inherit this config option, not all will function as expected with a width of 'auto'. Setting autoWidth:true means that the browser will manage width based on the element's contents, and that Ext will not manage it at all. </div>
\r
90 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#autoWidth" href="output/Ext.BoxComponent.html#autoWidth">BoxComponent</a></td>
\r
92 <tr class="config-row inherited alt expandable">
\r
93 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
95 <a id="Ext.Toolbar-clearCls"></a>
\r
96 <b>clearCls</b> : String <div class="mdesc">
\r
97 <div class="short">The CSS class used to provide field clearing (defaults to 'x-form-clear-left'). This config is only used when this Co...</div>
\r
99 The CSS class used to provide field clearing (defaults to 'x-form-clear-left'). <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> </div>
\r
102 <td class="msource"><a ext:cls="Ext.Component" ext:member="#clearCls" href="output/Ext.Component.html#clearCls">Component</a></td>
\r
104 <tr class="config-row inherited expandable">
\r
105 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
107 <a id="Ext.Toolbar-cls"></a>
\r
108 <b>cls</b> : String <div class="mdesc">
\r
109 <div class="short">An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for a...</div>
\r
111 An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules. </div>
\r
114 <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</a></td>
\r
116 <tr class="config-row inherited alt expandable">
\r
117 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
119 <a id="Ext.Toolbar-ctCls"></a>
\r
120 <b>ctCls</b> : String <div class="mdesc">
\r
121 <div class="short">An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for...</div>
\r
123 An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules. </div>
\r
126 <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">Component</a></td>
\r
128 <tr class="config-row inherited">
\r
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
131 <a id="Ext.Toolbar-disabled"></a>
\r
132 <b>disabled</b> : Boolean <div class="mdesc">
\r
133 Render this component disabled (default is false). </div>
\r
135 <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
\r
137 <tr class="config-row inherited alt">
\r
138 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
140 <a id="Ext.Toolbar-disabledClass"></a>
\r
141 <b>disabledClass</b> : String <div class="mdesc">
\r
142 CSS class added to the component when it is disabled (defaults to "x-item-disabled"). </div>
\r
144 <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td>
\r
146 <tr class="config-row inherited expandable">
\r
147 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
149 <a id="Ext.Toolbar-fieldLabel"></a>
\r
150 <b>fieldLabel</b> : String <div class="mdesc">
\r
151 <div class="short">The label text to display next to this Component (defaults to '') This config is only used when this Component is ren...</div>
\r
153 The label text to display next to this Component (defaults to '') <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
155 renderTo: Ext.getBody(),
157 xtype: <em>'textfield'</em>,
158 fieldLabel: <em>'Name'</em>
160 });</code></pre> </div>
\r
163 <td class="msource"><a ext:cls="Ext.Component" ext:member="#fieldLabel" href="output/Ext.Component.html#fieldLabel">Component</a></td>
\r
165 <tr class="config-row inherited alt">
\r
166 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
168 <a id="Ext.Toolbar-height"></a>
\r
169 <b>height</b> : Number <div class="mdesc">
\r
170 The height of this component in pixels (defaults to auto). </div>
\r
172 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#height" href="output/Ext.BoxComponent.html#height">BoxComponent</a></td>
\r
174 <tr class="config-row inherited">
\r
175 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
177 <a id="Ext.Toolbar-hidden"></a>
\r
178 <b>hidden</b> : Boolean <div class="mdesc">
\r
179 Render this component hidden (default is false). </div>
\r
181 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
\r
183 <tr class="config-row inherited alt expandable">
\r
184 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
186 <a id="Ext.Toolbar-hideLabel"></a>
\r
187 <b>hideLabel</b> : Boolean <div class="mdesc">
\r
188 <div class="short">True to completely hide the label element (defaults to false). By default, even if you do not specify a fieldLabel th...</div>
\r
190 True to completely hide the label element (defaults to false). By default, even if you do not specify a <a ext:cls="fieldLabel" href="output/fieldLabel.html">fieldLabel</a> the space will still be reserved so that the field will line up with other fields that do have labels. Setting this to true will cause the field to not reserve that space. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
192 renderTo: Ext.getBody(),
194 xtype: <em>'textfield'</em>
197 });</code></pre> </div>
\r
200 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideLabel" href="output/Ext.Component.html#hideLabel">Component</a></td>
\r
202 <tr class="config-row inherited expandable">
\r
203 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
205 <a id="Ext.Toolbar-hideMode"></a>
\r
206 <b>hideMode</b> : String <div class="mdesc">
\r
207 <div class="short">How this component should be hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset p...</div>
\r
209 <p>How this component should be hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display".</p> <p>For Containers which may be hidden and shown as part of a <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">card layout</a> Container such as a <a ext:cls="Ext.TabPanel" href="output/Ext.TabPanel.html">TabPanel</a>, it is recommended that hideMode is configured as "offsets". This ensures that hidden Components still have height and width so that layout managers can perform measurements when calculating layouts.</p> </div>
\r
212 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideMode" href="output/Ext.Component.html#hideMode">Component</a></td>
\r
214 <tr class="config-row inherited alt expandable">
\r
215 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
217 <a id="Ext.Toolbar-hideParent"></a>
\r
218 <b>hideParent</b> : Boolean <div class="mdesc">
\r
219 <div class="short">True to hide and show the component's container when hide/show is called on the component, false to hide and show the...</div>
\r
221 True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container. </div>
\r
224 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideParent" href="output/Ext.Component.html#hideParent">Component</a></td>
\r
226 <tr class="config-row inherited expandable">
\r
227 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
229 <a id="Ext.Toolbar-id"></a>
\r
230 <b>id</b> : String <div class="mdesc">
\r
231 <div class="short">The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to ...</div>
\r
233 The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to access the component later and you do not have an object reference available (e.g., using <a ext:cls="Ext.ComponentMgr" ext:member="getCmp" href="output/Ext.ComponentMgr.html#getCmp">Ext.ComponentMgr.getCmp</a>). Note that this id will also be used as the element id for the containing HTML element that is rendered to the page for this component. This allows you to write id-based CSS rules to style the specific instance of this component uniquely, and also to select sub-elements using this component's id as the parent. </div>
\r
236 <td class="msource"><a ext:cls="Ext.Component" ext:member="#id" href="output/Ext.Component.html#id">Component</a></td>
\r
238 <tr class="config-row inherited alt expandable">
\r
239 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
241 <a id="Ext.Toolbar-itemCls"></a>
\r
242 <b>itemCls</b> : String <div class="mdesc">
\r
243 <div class="short">An additional CSS class to apply to the wrapper's form item element of this field (defaults to the container's itemCl...</div>
\r
245 An additional CSS class to apply to the wrapper's form item element of this field (defaults to the container's itemCls value if set, or ''). Since it is applied to the item wrapper, it allows you to write standard CSS rules that can apply to the field, the label (if specified) or any other element within the markup for the field. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code><i>// Apply a style to the field's label:</i>
247 .required .x-form-item-label {font-weight:bold;color:red;}
250 <b>new</b> Ext.FormPanel({
252 renderTo: Ext.getBody(),
254 xtype: <em>'textfield'</em>,
255 fieldLabel: <em>'Name'</em>,
256 itemCls: <em>'required'</em> <i>//<b>this</b> label will be styled</i>
258 xtype: <em>'textfield'</em>,
259 fieldLabel: <em>'Favorite Color'</em>
261 });</code></pre> </div>
\r
264 <td class="msource"><a ext:cls="Ext.Component" ext:member="#itemCls" href="output/Ext.Component.html#itemCls">Component</a></td>
\r
266 <tr class="config-row inherited expandable">
\r
267 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
269 <a id="Ext.Toolbar-labelSeparator"></a>
\r
270 <b>labelSeparator</b> : String <div class="mdesc">
\r
271 <div class="short">The standard separator to display after the text of each form label (defaults to the value of Ext.layout.FormLayout.l...</div>
\r
273 The standard separator to display after the text of each form label (defaults to the value of <a ext:cls="Ext.layout.FormLayout" ext:member="labelSeparator" href="output/Ext.layout.FormLayout.html#labelSeparator">Ext.layout.FormLayout.labelSeparator</a>, which is a colon ':' by default). To display no separator for this field's label specify empty string ''. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
275 renderTo: Ext.getBody(),
277 xtype: <em>'textfield'</em>,
278 fieldLabel: <em>'Name'</em>,
279 labelSeparator: <em>'...'</em>
281 });</code></pre> </div>
\r
284 <td class="msource"><a ext:cls="Ext.Component" ext:member="#labelSeparator" href="output/Ext.Component.html#labelSeparator">Component</a></td>
\r
286 <tr class="config-row inherited alt expandable">
\r
287 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
289 <a id="Ext.Toolbar-labelStyle"></a>
\r
290 <b>labelStyle</b> : String <div class="mdesc">
\r
291 <div class="short">A CSS style specification to apply directly to this field's label (defaults to the container's labelStyle value if se...</div>
\r
293 A CSS style specification to apply directly to this field's label (defaults to the container's labelStyle value if set, or '').<code></code>. <p><b>This config is only used when this Component is rendered by a Container which has been configured to use the <a ext:cls="Ext.form.FormLayout" href="output/Ext.form.FormLayout.html">FormLayout</a> layout manager.</b></p> Example use:<pre><code>new Ext.FormPanel({
295 renderTo: Ext.getBody(),
297 xtype: <em>'textfield'</em>,
298 fieldLabel: <em>'Name'</em>,
299 labelStyle: <em>'font-weight:bold;'</em>
301 });</code></pre> </div>
\r
304 <td class="msource"><a ext:cls="Ext.Component" ext:member="#labelStyle" href="output/Ext.Component.html#labelStyle">Component</a></td>
\r
306 <tr class="config-row inherited expandable">
\r
307 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
309 <a id="Ext.Toolbar-listeners"></a>
\r
310 <b>listeners</b> : Object <div class="mdesc">
\r
311 <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>
\r
313 (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>
\r
316 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
\r
318 <tr class="config-row inherited alt expandable">
\r
319 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
321 <a id="Ext.Toolbar-overCls"></a>
\r
322 <b>overCls</b> : String <div class="mdesc">
\r
323 <div class="short">An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and...</div>
\r
325 An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and removed when the mouse moves out. (defaults to ''). This can be useful for adding customized "active" or "hover" styles to the component or any of its children using standard CSS rules. </div>
\r
328 <td class="msource"><a ext:cls="Ext.Component" ext:member="#overCls" href="output/Ext.Component.html#overCls">Component</a></td>
\r
330 <tr class="config-row inherited">
\r
331 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
333 <a id="Ext.Toolbar-pageX"></a>
\r
334 <b>pageX</b> : Number <div class="mdesc">
\r
335 The page level x coordinate for this component if contained within a positioning container. </div>
\r
337 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#pageX" href="output/Ext.BoxComponent.html#pageX">BoxComponent</a></td>
\r
339 <tr class="config-row inherited alt">
\r
340 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
342 <a id="Ext.Toolbar-pageY"></a>
\r
343 <b>pageY</b> : Number <div class="mdesc">
\r
344 The page level y coordinate for this component if contained within a positioning container. </div>
\r
346 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#pageY" href="output/Ext.BoxComponent.html#pageY">BoxComponent</a></td>
\r
348 <tr class="config-row inherited expandable">
\r
349 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
351 <a id="Ext.Toolbar-plugins"></a>
\r
352 <b>plugins</b> : Object/Array <div class="mdesc">
\r
353 <div class="short">An object or array of objects that will provide custom functionality for this component. The only requirement for a v...</div>
\r
355 An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality. </div>
\r
358 <td class="msource"><a ext:cls="Ext.Component" ext:member="#plugins" href="output/Ext.Component.html#plugins">Component</a></td>
\r
360 <tr class="config-row inherited alt expandable">
\r
361 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
363 <a id="Ext.Toolbar-renderTo"></a>
\r
364 <b>renderTo</b> : Mixed <div class="mdesc">
\r
365 <div class="short">The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using...</div>
\r
367 The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required. </div>
\r
370 <td class="msource"><a ext:cls="Ext.Component" ext:member="#renderTo" href="output/Ext.Component.html#renderTo">Component</a></td>
\r
372 <tr class="config-row inherited expandable">
\r
373 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
375 <a id="Ext.Toolbar-stateEvents"></a>
\r
376 <b>stateEvents</b> : Array <div class="mdesc">
\r
377 <div class="short">An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be...</div>
\r
379 An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be any types of events supported by this component, including browser or custom events (e.g., ['click', 'customerchange']). <p>See <a ext:cls="Ext.Component" ext:member="stateful" href="output/Ext.Component.html#stateful">stateful</a> for an explanation of saving and restoring Component state.</p> </div>
\r
382 <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateEvents" href="output/Ext.Component.html#stateEvents">Component</a></td>
\r
384 <tr class="config-row inherited alt expandable">
\r
385 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
387 <a id="Ext.Toolbar-stateId"></a>
\r
388 <b>stateId</b> : String <div class="mdesc">
\r
389 <div class="short">The unique id for this component to use for state management purposes (defaults to the component id if one was set, o...</div>
\r
391 The unique id for this component to use for state management purposes (defaults to the component id if one was set, otherwise null if the component is using a generated id). <p>See <a ext:cls="Ext.Component" ext:member="stateful" href="output/Ext.Component.html#stateful">stateful</a> for an explanation of saving and restoring Component state.</p> </div>
\r
394 <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>
\r
396 <tr class="config-row inherited expandable">
\r
397 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
399 <a id="Ext.Toolbar-stateful"></a>
\r
400 <b>stateful</b> : Boolean <div class="mdesc">
\r
401 <div class="short">A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startu...</div>
\r
403 <p>A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startup. The component must have either a <a ext:cls="Ext.Component" ext:member="stateId" href="output/Ext.Component.html#stateId">stateId</a> or <a ext:cls="Ext.Component" ext:member="id" href="output/Ext.Component.html#id">id</a> assigned for state to be managed. Auto-generated ids are not guaranteed to be stable across page loads and cannot be relied upon to save and restore the same state for a component.<p> For state saving to work, the state manager's provider must have been set to an implementation of <a ext:cls="Ext.state.Provider" href="output/Ext.state.Provider.html">Ext.state.Provider</a> which overrides the <a ext:cls="Ext.state.Provider" ext:member="set" href="output/Ext.state.Provider.html#set">set</a> and <a ext:cls="Ext.state.Provider" ext:member="get" href="output/Ext.state.Provider.html#get">get</a> methods to save and recall name/value pairs. A built-in implementation, <a ext:cls="Ext.state.CookieProvider" href="output/Ext.state.CookieProvider.html">Ext.state.CookieProvider</a> is available.</p> <p>To set the state provider for the current page:</p> <pre><code>Ext.state.Manager.setProvider(<b>new</b> Ext.state.CookieProvider());</code></pre> <p>Components attempt to save state when one of the events listed in the <a ext:cls="Ext.Component" ext:member="stateEvents" href="output/Ext.Component.html#stateEvents">stateEvents</a> configuration fires.</p> <p>You can perform extra processing on state save and restore by attaching handlers to the <a ext:cls="Ext.Component" ext:member="beforestaterestore" href="output/Ext.Component.html#beforestaterestore">beforestaterestore</a>, <a ext:cls="Ext.Component" ext:member="staterestore" href="output/Ext.Component.html#staterestore">staterestore</a>, <a ext:cls="Ext.Component" ext:member="beforestatesave" href="output/Ext.Component.html#beforestatesave">beforestatesave</a> and <a ext:cls="Ext.Component" ext:member="statesave" href="output/Ext.Component.html#statesave">statesave</a> events</p> </div>
\r
406 <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateful" href="output/Ext.Component.html#stateful">Component</a></td>
\r
408 <tr class="config-row inherited alt expandable">
\r
409 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
411 <a id="Ext.Toolbar-style"></a>
\r
412 <b>style</b> : String <div class="mdesc">
\r
413 <div class="short">A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.app...</div>
\r
415 A custom style specification to be applied to this component's Element. Should be a valid argument to <a ext:cls="Ext.Element" ext:member="applyStyles" href="output/Ext.Element.html#applyStyles">Ext.Element.applyStyles</a>. </div>
\r
418 <td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>
\r
420 <tr class="config-row inherited">
\r
421 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
423 <a id="Ext.Toolbar-width"></a>
\r
424 <b>width</b> : Number <div class="mdesc">
\r
425 The width of this component in pixels (defaults to auto). </div>
\r
427 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#width" href="output/Ext.BoxComponent.html#width">BoxComponent</a></td>
\r
429 <tr class="config-row inherited alt">
\r
430 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
432 <a id="Ext.Toolbar-x"></a>
\r
433 <b>x</b> : Number <div class="mdesc">
\r
434 The local x (left) coordinate for this component if contained within a positioning container. </div>
\r
436 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#x" href="output/Ext.BoxComponent.html#x">BoxComponent</a></td>
\r
438 <tr class="config-row inherited expandable">
\r
439 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
441 <a id="Ext.Toolbar-xtype"></a>
\r
442 <b>xtype</b> : String <div class="mdesc">
\r
443 <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>
\r
445 The registered xtype to create. This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed <a ext:cls="Ext.Component" href="output/Ext.Component.html">here</a>. <br><br> If you subclass Components to create your own Components, you may register them using <a ext:cls="Ext.ComponentMgr" ext:member="registerType" href="output/Ext.ComponentMgr.html#registerType">Ext.ComponentMgr.registerType</a> in order to be able to take advantage of lazy instantiation and rendering. </div>
\r
448 <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>
\r
450 <tr class="config-row inherited alt">
\r
451 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
453 <a id="Ext.Toolbar-y"></a>
\r
454 <b>y</b> : Number <div class="mdesc">
\r
455 The local y (top) coordinate for this component if contained within a positioning container. </div>
\r
457 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#y" href="output/Ext.BoxComponent.html#y">BoxComponent</a></td>
\r
460 <a id="Ext.Toolbar-props"></a>
461 <h2>Public Properties</h2>
462 <table cellspacing="0" class="member-table">
464 <th class="sig-header" colspan="2">Property</th>
465 <th class="msource-header">Defined By</th>
467 <tr class="property-row inherited">
\r
468 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
470 <a id="Ext.Toolbar-disabled"></a>
\r
471 <b>disabled</b> : Boolean <div class="mdesc">
\r
472 True if this component is disabled. Read-only. </div>
\r
474 <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
\r
476 <tr class="property-row inherited alt">
\r
477 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
479 <a id="Ext.Toolbar-hidden"></a>
\r
480 <b>hidden</b> : Boolean <div class="mdesc">
\r
482 True if this component is hidden. Read-only. </div>
\r
484 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
\r
486 <tr class="property-row inherited">
\r
487 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
489 <a id="Ext.Toolbar-initialConfig"></a>
\r
490 <b>initialConfig</b> : Object <div class="mdesc">
\r
491 This Component's initial configuration specification. Read-only. </div>
\r
493 <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>
\r
495 <tr class="property-row alt">
\r
496 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
498 <a id="Ext.Toolbar-items"></a>
\r
499 <b>items</b> : Ext.util.MixedCollection <div class="mdesc">
\r
500 A MixedCollection of this Toolbar's items </div>
\r
502 <td class="msource">Toolbar</td>
\r
504 <tr class="property-row inherited expandable">
\r
505 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
507 <a id="Ext.Toolbar-ownerCt"></a>
\r
508 <b>ownerCt</b> : Ext.Container <div class="mdesc">
\r
509 <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically when
510 the component is added to a...</div>
\r
512 The component's owner <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (defaults to undefined, and is set automatically when
513 the component is added to a container). Read-only. </div>
\r
516 <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td>
\r
518 <tr class="property-row inherited alt">
\r
519 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
521 <a id="Ext.Toolbar-rendered"></a>
\r
522 <b>rendered</b> : Boolean <div class="mdesc">
\r
523 True if this component has been rendered. Read-only. </div>
\r
525 <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td>
\r
528 <a id="Ext.Toolbar-methods"></a>
529 <h2>Public Methods</h2>
530 <table cellspacing="0" class="member-table">
532 <th class="sig-header" colspan="2">Method</th>
533 <th class="msource-header">Defined By</th>
535 <tr class="method-row expandable">
\r
536 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
538 <a id="Ext.Toolbar-Toolbar"></a>
\r
539 <b>Toolbar</b>( <code>Object/Array config</code> ) <div class="mdesc">
\r
540 <div class="short">Creates a new Toolbar</div>
\r
542 Creates a new Toolbar <div class="mdetail-params">
\r
543 <strong>Parameters:</strong>
\r
544 <ul><li><code>config</code> : Object/Array<div class="sub-desc">A config object or an array of buttons to add</div></li> </ul>
\r
545 <strong>Returns:</strong>
\r
547 <li><code></code></li>
\r
553 <td class="msource">Toolbar</td>
\r
555 <tr class="method-row alt expandable">
\r
556 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
558 <a id="Ext.Toolbar-add"></a>
\r
559 <b>add</b>( <code>Mixed arg1</code>, <code>Mixed arg2</code>, <code>Mixed etc.</code> ) : void <div class="mdesc">
\r
560 <div class="short">Adds element(s) to the toolbar -- this function takes a variable number of
561 arguments of mixed type and adds them to t...</div>
\r
563 Adds element(s) to the toolbar -- this function takes a variable number of
564 arguments of mixed type and adds them to the toolbar. <div class="mdetail-params">
\r
565 <strong>Parameters:</strong>
\r
566 <ul><li><code>arg1</code> : Mixed<div class="sub-desc">The following types of arguments are all valid:<br />
568 <li><a ext:cls="Ext.Toolbar.Button" href="output/Ext.Toolbar.Button.html">Ext.Toolbar.Button</a> config: A valid button config object (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addButton" href="output/Ext.Toolbar.html#addButton">addButton</a>)</li>
569 <li>HtmlElement: Any standard HTML element (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addElement" href="output/Ext.Toolbar.html#addElement">addElement</a>)</li>
570 <li>Field: Any form field (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addField" href="output/Ext.Toolbar.html#addField">addField</a>)</li>
571 <li>Item: Any subclass of <a ext:cls="Ext.Toolbar.Item" href="output/Ext.Toolbar.Item.html">Ext.Toolbar.Item</a> (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addItem" href="output/Ext.Toolbar.html#addItem">addItem</a>)</li>
572 <li>String: Any generic string (gets wrapped in a <a ext:cls="Ext.Toolbar.TextItem" href="output/Ext.Toolbar.TextItem.html">Ext.Toolbar.TextItem</a>, equivalent to <a ext:cls="Ext.Toolbar" ext:member="addText" href="output/Ext.Toolbar.html#addText">addText</a>).
573 Note that there are a few special strings that are treated differently as explained next.</li>
574 <li>'separator' or '-': Creates a separator element (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addSeparator" href="output/Ext.Toolbar.html#addSeparator">addSeparator</a>)</li>
575 <li>' ': Creates a spacer element (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addSpacer" href="output/Ext.Toolbar.html#addSpacer">addSpacer</a>)</li>
576 <li>'->': Creates a fill element (equivalent to <a ext:cls="Ext.Toolbar" ext:member="addFill" href="output/Ext.Toolbar.html#addFill">addFill</a>)</li>
577 </ul></div></li><li><code>arg2</code> : Mixed<div class="sub-desc"></div></li><li><code>etc.</code> : Mixed<div class="sub-desc"></div></li> </ul>
\r
578 <strong>Returns:</strong>
\r
580 <li><code>void</code></li>
\r
586 <td class="msource">Toolbar</td>
\r
588 <tr class="method-row expandable">
\r
589 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
591 <a id="Ext.Toolbar-addButton"></a>
\r
592 <b>addButton</b>( <code>Object/Array config</code> ) : Ext.Toolbar.Button/Array <div class="mdesc">
\r
593 <div class="short">Adds a button (or buttons). See <a ext:cls="Ext.Toolbar.Button" href="output/Ext.Toolbar.Button.html">Ext.Toolbar.Button</a> for more info on the config.</div>
\r
595 Adds a button (or buttons). See <a ext:cls="Ext.Toolbar.Button" href="output/Ext.Toolbar.Button.html">Ext.Toolbar.Button</a> for more info on the config. <div class="mdetail-params">
\r
596 <strong>Parameters:</strong>
\r
597 <ul><li><code>config</code> : Object/Array<div class="sub-desc">A button config or array of configs</div></li> </ul>
\r
598 <strong>Returns:</strong>
\r
600 <li><code>Ext.Toolbar.Button/Array</code></li>
\r
606 <td class="msource">Toolbar</td>
\r
608 <tr class="method-row inherited alt expandable">
\r
609 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
611 <a id="Ext.Toolbar-addClass"></a>
\r
612 <b>addClass</b>( <code>string cls</code> ) : void <div class="mdesc">
\r
613 <div class="short">Adds a CSS class to the component's underlying element.</div>
\r
615 Adds a CSS class to the component's underlying element. <div class="mdetail-params">
\r
616 <strong>Parameters:</strong>
\r
617 <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li> </ul>
\r
618 <strong>Returns:</strong>
\r
620 <li><code>void</code></li>
\r
626 <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td>
\r
628 <tr class="method-row expandable">
\r
629 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
631 <a id="Ext.Toolbar-addDom"></a>
\r
632 <b>addDom</b>( <code>Object config</code> ) : Ext.Toolbar.Item <div class="mdesc">
\r
633 <div class="short">Adds a new element to the toolbar from the passed <a ext:cls="Ext.DomHelper" href="output/Ext.DomHelper.html">Ext.DomHelper</a> config</div>
\r
635 Adds a new element to the toolbar from the passed <a ext:cls="Ext.DomHelper" href="output/Ext.DomHelper.html">Ext.DomHelper</a> config <div class="mdetail-params">
\r
636 <strong>Parameters:</strong>
\r
637 <ul><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul>
\r
638 <strong>Returns:</strong>
\r
640 <li><code>Ext.Toolbar.Item</code><div class="sub-desc">The element's item</div></li>
\r
646 <td class="msource">Toolbar</td>
\r
648 <tr class="method-row alt expandable">
\r
649 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
651 <a id="Ext.Toolbar-addElement"></a>
\r
652 <b>addElement</b>( <code>Mixed el</code> ) : Ext.Toolbar.Item <div class="mdesc">
\r
653 <div class="short">Adds any standard HTML element to the toolbar</div>
\r
655 Adds any standard HTML element to the toolbar <div class="mdetail-params">
\r
656 <strong>Parameters:</strong>
\r
657 <ul><li><code>el</code> : Mixed<div class="sub-desc">The element or id of the element to add</div></li> </ul>
\r
658 <strong>Returns:</strong>
\r
660 <li><code>Ext.Toolbar.Item</code><div class="sub-desc">The element's item</div></li>
\r
666 <td class="msource">Toolbar</td>
\r
668 <tr class="method-row inherited expandable">
\r
669 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
671 <a id="Ext.Toolbar-addEvents"></a>
\r
672 <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">
\r
673 <div class="short">Used to define events on this Observable</div>
\r
675 Used to define events on this Observable <div class="mdetail-params">
\r
676 <strong>Parameters:</strong>
\r
677 <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
\r
678 <strong>Returns:</strong>
\r
680 <li><code>void</code></li>
\r
686 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
\r
688 <tr class="method-row alt expandable">
\r
689 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
691 <a id="Ext.Toolbar-addField"></a>
\r
692 <b>addField</b>( <code>Ext.form.Field field</code> ) : Ext.Toolbar.Item <div class="mdesc">
\r
693 <div class="short">Adds a dynamically rendered Ext.form field (TextField, ComboBox, etc). Note: the field should not have
694 been rendered ...</div>
\r
696 Adds a dynamically rendered Ext.form field (TextField, ComboBox, etc). Note: the field should not have
697 been rendered yet. For a field that has already been rendered, use <a ext:cls="Ext.Toolbar" ext:member="addElement" href="output/Ext.Toolbar.html#addElement">addElement</a>. <div class="mdetail-params">
\r
698 <strong>Parameters:</strong>
\r
699 <ul><li><code>field</code> : Ext.form.Field<div class="sub-desc"></div></li> </ul>
\r
700 <strong>Returns:</strong>
\r
702 <li><code>Ext.Toolbar.Item</code></li>
\r
708 <td class="msource">Toolbar</td>
\r
710 <tr class="method-row expandable">
\r
711 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
713 <a id="Ext.Toolbar-addFill"></a>
\r
714 <b>addFill</b>() : Ext.Toolbar.Fill <div class="mdesc">
\r
715 <div class="short">Adds a fill element that forces subsequent additions to the right side of the toolbar</div>
\r
717 Adds a fill element that forces subsequent additions to the right side of the toolbar <div class="mdetail-params">
\r
718 <strong>Parameters:</strong>
\r
719 <ul><li>None.</li> </ul>
\r
720 <strong>Returns:</strong>
\r
722 <li><code>Ext.Toolbar.Fill</code><div class="sub-desc">The fill item</div></li>
\r
728 <td class="msource">Toolbar</td>
\r
730 <tr class="method-row alt expandable">
\r
731 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
733 <a id="Ext.Toolbar-addItem"></a>
\r
734 <b>addItem</b>( <code>Ext.Toolbar.Item item</code> ) : Ext.Toolbar.Item <div class="mdesc">
\r
735 <div class="short">Adds any Toolbar.Item or subclass</div>
\r
737 Adds any Toolbar.Item or subclass <div class="mdetail-params">
\r
738 <strong>Parameters:</strong>
\r
739 <ul><li><code>item</code> : Ext.Toolbar.Item<div class="sub-desc"></div></li> </ul>
\r
740 <strong>Returns:</strong>
\r
742 <li><code>Ext.Toolbar.Item</code><div class="sub-desc">The item</div></li>
\r
748 <td class="msource">Toolbar</td>
\r
750 <tr class="method-row inherited expandable">
\r
751 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
753 <a id="Ext.Toolbar-addListener"></a>
\r
754 <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
755 <div class="short">Appends an event handler to this component</div>
\r
757 Appends an event handler to this component <div class="mdetail-params">
\r
758 <strong>Parameters:</strong>
\r
759 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
760 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
761 properties. This may contain any of the following properties:<ul>
762 <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
763 <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
764 <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
765 <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
766 by the specified number of milliseconds. If the event fires again within that time, the original
767 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
770 <b>Combining Options</b><br>
771 Using the options argument, it is possible to combine different types of listeners:<br>
773 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
774 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
780 <b>Attaching multiple handlers in 1 call</b><br>
781 The method also allows for a single argument to be passed which is a config object containing properties
782 which specify multiple handlers.
786 fn: <b>this</b>.onClick,
790 <em>'mouseover'</em> : {
791 fn: <b>this</b>.onMouseOver,
794 <em>'mouseout'</em> : {
795 fn: <b>this</b>.onMouseOut,
800 Or a shorthand syntax:<br>
802 <em>'click'</em> : <b>this</b>.onClick,
803 <em>'mouseover'</em> : <b>this</b>.onMouseOver,
804 <em>'mouseout'</em> : <b>this</b>.onMouseOut,
806 });</code></pre></div></li> </ul>
\r
807 <strong>Returns:</strong>
\r
809 <li><code>void</code></li>
\r
815 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
\r
817 <tr class="method-row alt expandable">
\r
818 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
820 <a id="Ext.Toolbar-addSeparator"></a>
\r
821 <b>addSeparator</b>() : Ext.Toolbar.Item <div class="mdesc">
\r
822 <div class="short">Adds a separator</div>
\r
824 Adds a separator <div class="mdetail-params">
\r
825 <strong>Parameters:</strong>
\r
826 <ul><li>None.</li> </ul>
\r
827 <strong>Returns:</strong>
\r
829 <li><code>Ext.Toolbar.Item</code><div class="sub-desc">The separator item</div></li>
\r
835 <td class="msource">Toolbar</td>
\r
837 <tr class="method-row expandable">
\r
838 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
840 <a id="Ext.Toolbar-addSpacer"></a>
\r
841 <b>addSpacer</b>() : Ext.Toolbar.Spacer <div class="mdesc">
\r
842 <div class="short">Adds a spacer element</div>
\r
844 Adds a spacer element <div class="mdetail-params">
\r
845 <strong>Parameters:</strong>
\r
846 <ul><li>None.</li> </ul>
\r
847 <strong>Returns:</strong>
\r
849 <li><code>Ext.Toolbar.Spacer</code><div class="sub-desc">The spacer item</div></li>
\r
855 <td class="msource">Toolbar</td>
\r
857 <tr class="method-row alt expandable">
\r
858 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
860 <a id="Ext.Toolbar-addText"></a>
\r
861 <b>addText</b>( <code>String text</code> ) : Ext.Toolbar.Item <div class="mdesc">
\r
862 <div class="short">Adds text to the toolbar</div>
\r
864 Adds text to the toolbar <div class="mdetail-params">
\r
865 <strong>Parameters:</strong>
\r
866 <ul><li><code>text</code> : String<div class="sub-desc">The text to add</div></li> </ul>
\r
867 <strong>Returns:</strong>
\r
869 <li><code>Ext.Toolbar.Item</code><div class="sub-desc">The element's item</div></li>
\r
875 <td class="msource">Toolbar</td>
\r
877 <tr class="method-row inherited expandable">
\r
878 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
880 <a id="Ext.Toolbar-applyToMarkup"></a>
\r
881 <b>applyToMarkup</b>( <code>String/HTMLElement el</code> ) : void <div class="mdesc">
\r
882 <div class="short">Apply this component to existing markup that is valid. With this function, no call to render() is required.</div>
\r
884 Apply this component to existing markup that is valid. With this function, no call to render() is required. <div class="mdetail-params">
\r
885 <strong>Parameters:</strong>
\r
886 <ul><li><code>el</code> : String/HTMLElement<div class="sub-desc"></div></li> </ul>
\r
887 <strong>Returns:</strong>
\r
889 <li><code>void</code></li>
\r
895 <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyToMarkup" href="output/Ext.Component.html#applyToMarkup">Component</a></td>
\r
897 <tr class="method-row inherited alt expandable">
\r
898 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
900 <a id="Ext.Toolbar-cloneConfig"></a>
\r
901 <b>cloneConfig</b>( <code>Object overrides</code> ) : Ext.Component <div class="mdesc">
\r
902 <div class="short">Clone the current component using the original config values passed into this instance by default.</div>
\r
904 Clone the current component using the original config values passed into this instance by default. <div class="mdetail-params">
\r
905 <strong>Parameters:</strong>
\r
906 <ul><li><code>overrides</code> : Object<div class="sub-desc">A new config containing any properties to override in the cloned version.
907 An id property can be passed on this object, otherwise one will be generated to avoid duplicates.</div></li> </ul>
\r
908 <strong>Returns:</strong>
\r
910 <li><code>Ext.Component</code><div class="sub-desc">clone The cloned copy of this component</div></li>
\r
916 <td class="msource"><a ext:cls="Ext.Component" ext:member="#cloneConfig" href="output/Ext.Component.html#cloneConfig">Component</a></td>
\r
918 <tr class="method-row inherited expandable">
\r
919 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
921 <a id="Ext.Toolbar-destroy"></a>
\r
922 <b>destroy</b>() : void <div class="mdesc">
\r
923 <div class="short">Destroys this component by purging any event listeners, removing the component's element from the DOM,
924 removing the c...</div>
\r
926 Destroys this component by purging any event listeners, removing the component's element from the DOM,
927 removing the component from its <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (if applicable) and unregistering it from
928 <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. Destruction is generally handled automatically by the framework and this method
929 should usually not need to be called directly. <div class="mdetail-params">
\r
930 <strong>Parameters:</strong>
\r
931 <ul><li>None.</li> </ul>
\r
932 <strong>Returns:</strong>
\r
934 <li><code>void</code></li>
\r
940 <td class="msource"><a ext:cls="Ext.Component" ext:member="#destroy" href="output/Ext.Component.html#destroy">Component</a></td>
\r
942 <tr class="method-row inherited alt expandable">
\r
943 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
945 <a id="Ext.Toolbar-disable"></a>
\r
946 <b>disable</b>() : Ext.Component <div class="mdesc">
\r
947 <div class="short">Disable this component.</div>
\r
949 Disable this component. <div class="mdetail-params">
\r
950 <strong>Parameters:</strong>
\r
951 <ul><li>None.</li> </ul>
\r
952 <strong>Returns:</strong>
\r
954 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
960 <td class="msource"><a ext:cls="Ext.Component" ext:member="#disable" href="output/Ext.Component.html#disable">Component</a></td>
\r
962 <tr class="method-row inherited expandable">
\r
963 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
965 <a id="Ext.Toolbar-enable"></a>
\r
966 <b>enable</b>() : Ext.Component <div class="mdesc">
\r
967 <div class="short">Enable this component.</div>
\r
969 Enable this component. <div class="mdetail-params">
\r
970 <strong>Parameters:</strong>
\r
971 <ul><li>None.</li> </ul>
\r
972 <strong>Returns:</strong>
\r
974 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
980 <td class="msource"><a ext:cls="Ext.Component" ext:member="#enable" href="output/Ext.Component.html#enable">Component</a></td>
\r
982 <tr class="method-row inherited alt expandable">
\r
983 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
985 <a id="Ext.Toolbar-findParentBy"></a>
\r
986 <b>findParentBy</b>( <code>Function fcn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.Container <div class="mdesc">
\r
987 <div class="short">Find a container above this component at any level by a custom function. If the passed function returns
988 true, the con...</div>
\r
990 Find a container above this component at any level by a custom function. If the passed function returns
991 true, the container will be returned. The passed function is called with the arguments (container, this component). <div class="mdetail-params">
\r
992 <strong>Parameters:</strong>
\r
993 <ul><li><code>fcn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
\r
994 <strong>Returns:</strong>
\r
996 <li><code>Ext.Container</code><div class="sub-desc">The first Container for which the custom function returns true</div></li>
\r
1002 <td class="msource"><a ext:cls="Ext.Component" ext:member="#findParentBy" href="output/Ext.Component.html#findParentBy">Component</a></td>
\r
1004 <tr class="method-row inherited expandable">
\r
1005 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1007 <a id="Ext.Toolbar-findParentByType"></a>
\r
1008 <b>findParentByType</b>( <code>String/Class xtype</code> ) : Ext.Container <div class="mdesc">
\r
1009 <div class="short">Find a container above this component at any level by xtype or class</div>
\r
1010 <div class="long">
\r
1011 Find a container above this component at any level by xtype or class <div class="mdetail-params">
\r
1012 <strong>Parameters:</strong>
\r
1013 <ul><li><code>xtype</code> : String/Class<div class="sub-desc">The xtype string for a component, or the class of the component directly</div></li> </ul>
\r
1014 <strong>Returns:</strong>
\r
1016 <li><code>Ext.Container</code><div class="sub-desc">The first Container which matches the given xtype or class</div></li>
\r
1022 <td class="msource"><a ext:cls="Ext.Component" ext:member="#findParentByType" href="output/Ext.Component.html#findParentByType">Component</a></td>
\r
1024 <tr class="method-row inherited alt expandable">
\r
1025 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1027 <a id="Ext.Toolbar-fireEvent"></a>
\r
1028 <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
\r
1029 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
\r
1030 <div class="long">
\r
1031 Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
\r
1032 <strong>Parameters:</strong>
\r
1033 <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
\r
1034 <strong>Returns:</strong>
\r
1036 <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
\r
1042 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
\r
1044 <tr class="method-row inherited expandable">
\r
1045 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1047 <a id="Ext.Toolbar-focus"></a>
\r
1048 <b>focus</b>( <span class="optional" title="Optional">[<code>Boolean selectText</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Number delay</code>]</span> ) : Ext.Component <div class="mdesc">
\r
1049 <div class="short">Try to focus this component.</div>
\r
1050 <div class="long">
\r
1051 Try to focus this component. <div class="mdetail-params">
\r
1052 <strong>Parameters:</strong>
\r
1053 <ul><li><code>selectText</code> : Boolean<div class="sub-desc">(optional) If applicable, true to also select the text in this component</div></li><li><code>delay</code> : Boolean/Number<div class="sub-desc">(optional) Delay the focus this number of milliseconds (true for 10 milliseconds)</div></li> </ul>
\r
1054 <strong>Returns:</strong>
\r
1056 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
1062 <td class="msource"><a ext:cls="Ext.Component" ext:member="#focus" href="output/Ext.Component.html#focus">Component</a></td>
\r
1064 <tr class="method-row inherited alt expandable">
\r
1065 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1067 <a id="Ext.Toolbar-getBox"></a>
\r
1068 <b>getBox</b>( <span class="optional" title="Optional">[<code>Boolean local</code>]</span> ) : Object <div class="mdesc">
\r
1069 <div class="short">Gets the current box measurements of the component's underlying element.</div>
\r
1070 <div class="long">
\r
1071 Gets the current box measurements of the component's underlying element. <div class="mdetail-params">
\r
1072 <strong>Parameters:</strong>
\r
1073 <ul><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page XY (defaults to false)</div></li> </ul>
\r
1074 <strong>Returns:</strong>
\r
1076 <li><code>Object</code><div class="sub-desc">box An object in the format {x, y, width, height}</div></li>
\r
1082 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getBox" href="output/Ext.BoxComponent.html#getBox">BoxComponent</a></td>
\r
1084 <tr class="method-row inherited expandable">
\r
1085 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1087 <a id="Ext.Toolbar-getEl"></a>
\r
1088 <b>getEl</b>() : Ext.Element <div class="mdesc">
\r
1089 <div class="short">Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.</div>
\r
1090 <div class="long">
\r
1091 Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>. <div class="mdetail-params">
\r
1092 <strong>Parameters:</strong>
\r
1093 <ul><li>None.</li> </ul>
\r
1094 <strong>Returns:</strong>
\r
1096 <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>
\r
1102 <td class="msource"><a ext:cls="Ext.Component" ext:member="#getEl" href="output/Ext.Component.html#getEl">Component</a></td>
\r
1104 <tr class="method-row inherited alt expandable">
\r
1105 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1107 <a id="Ext.Toolbar-getId"></a>
\r
1108 <b>getId</b>() : String <div class="mdesc">
\r
1109 <div class="short">Returns the id of this component.</div>
\r
1110 <div class="long">
\r
1111 Returns the id of this component. <div class="mdetail-params">
\r
1112 <strong>Parameters:</strong>
\r
1113 <ul><li>None.</li> </ul>
\r
1114 <strong>Returns:</strong>
\r
1116 <li><code>String</code></li>
\r
1122 <td class="msource"><a ext:cls="Ext.Component" ext:member="#getId" href="output/Ext.Component.html#getId">Component</a></td>
\r
1124 <tr class="method-row inherited expandable">
\r
1125 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1127 <a id="Ext.Toolbar-getItemId"></a>
\r
1128 <b>getItemId</b>() : String <div class="mdesc">
\r
1129 <div class="short">Returns the item id of this component.</div>
\r
1130 <div class="long">
\r
1131 Returns the item id of this component. <div class="mdetail-params">
\r
1132 <strong>Parameters:</strong>
\r
1133 <ul><li>None.</li> </ul>
\r
1134 <strong>Returns:</strong>
\r
1136 <li><code>String</code></li>
\r
1142 <td class="msource"><a ext:cls="Ext.Component" ext:member="#getItemId" href="output/Ext.Component.html#getItemId">Component</a></td>
\r
1144 <tr class="method-row inherited alt expandable">
\r
1145 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1147 <a id="Ext.Toolbar-getPosition"></a>
\r
1148 <b>getPosition</b>( <span class="optional" title="Optional">[<code>Boolean local</code>]</span> ) : Array <div class="mdesc">
\r
1149 <div class="short">Gets the current XY position of the component's underlying element.</div>
\r
1150 <div class="long">
\r
1151 Gets the current XY position of the component's underlying element. <div class="mdetail-params">
\r
1152 <strong>Parameters:</strong>
\r
1153 <ul><li><code>local</code> : Boolean<div class="sub-desc">(optional) If true the element's left and top are returned instead of page XY (defaults to false)</div></li> </ul>
\r
1154 <strong>Returns:</strong>
\r
1156 <li><code>Array</code><div class="sub-desc">The XY position of the element (e.g., [100, 200])</div></li>
\r
1162 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getPosition" href="output/Ext.BoxComponent.html#getPosition">BoxComponent</a></td>
\r
1164 <tr class="method-row inherited expandable">
\r
1165 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1167 <a id="Ext.Toolbar-getSize"></a>
\r
1168 <b>getSize</b>() : Object <div class="mdesc">
\r
1169 <div class="short">Gets the current size of the component's underlying element.</div>
\r
1170 <div class="long">
\r
1171 Gets the current size of the component's underlying element. <div class="mdetail-params">
\r
1172 <strong>Parameters:</strong>
\r
1173 <ul><li>None.</li> </ul>
\r
1174 <strong>Returns:</strong>
\r
1176 <li><code>Object</code><div class="sub-desc">An object containing the element's size {width: (element width), height: (element height)}</div></li>
\r
1182 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#getSize" href="output/Ext.BoxComponent.html#getSize">BoxComponent</a></td>
\r
1184 <tr class="method-row inherited alt expandable">
\r
1185 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1187 <a id="Ext.Toolbar-getXType"></a>
\r
1188 <b>getXType</b>() : String <div class="mdesc">
\r
1189 <div class="short">Gets the xtype for this component as registered with Ext.ComponentMgr. For a list of all
1190 available xtypes, see the Ex...</div>
\r
1191 <div class="long">
\r
1192 Gets the xtype for this component as registered with <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. For a list of all
1193 available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
1194 <pre><code>var t = <b>new</b> Ext.form.TextField();
1195 alert(t.getXType()); // alerts <em>'textfield'</em></code></pre> <div class="mdetail-params">
\r
1196 <strong>Parameters:</strong>
\r
1197 <ul><li>None.</li> </ul>
\r
1198 <strong>Returns:</strong>
\r
1200 <li><code>String</code><div class="sub-desc">The xtype</div></li>
\r
1206 <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXType" href="output/Ext.Component.html#getXType">Component</a></td>
\r
1208 <tr class="method-row inherited expandable">
\r
1209 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1211 <a id="Ext.Toolbar-getXTypes"></a>
\r
1212 <b>getXTypes</b>() : String <div class="mdesc">
\r
1213 <div class="short">Returns this Component's xtype hierarchy as a slash-delimited string. For a list of all
1214 available xtypes, see the Ext...</div>
\r
1215 <div class="long">
\r
1216 <p>Returns this Component's xtype hierarchy as a slash-delimited string. For a list of all
1217 available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header.</p>
1218 <p><b>If using your own subclasses, be aware that a Component must register its own xtype
1219 to participate in determination of inherited xtypes.</b></p>
1220 <p>Example usage:</p>
1222 var t = new Ext.form.TextField();
\r
1223 alert(t.getXTypes()); // alerts 'component/box/field/textfield'</pre></code> <div class="mdetail-params">
\r
1224 <strong>Parameters:</strong>
\r
1225 <ul><li>None.</li> </ul>
\r
1226 <strong>Returns:</strong>
\r
1228 <li><code>String</code><div class="sub-desc">The xtype hierarchy string</div></li>
\r
1234 <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXTypes" href="output/Ext.Component.html#getXTypes">Component</a></td>
\r
1236 <tr class="method-row inherited alt expandable">
\r
1237 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1239 <a id="Ext.Toolbar-hasListener"></a>
\r
1240 <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
\r
1241 <div class="short">Checks to see if this object has any listeners for a specified event</div>
\r
1242 <div class="long">
\r
1243 Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
\r
1244 <strong>Parameters:</strong>
\r
1245 <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
\r
1246 <strong>Returns:</strong>
\r
1248 <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
\r
1254 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
\r
1256 <tr class="method-row inherited expandable">
\r
1257 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1259 <a id="Ext.Toolbar-hide"></a>
\r
1260 <b>hide</b>() : Ext.Component <div class="mdesc">
\r
1261 <div class="short">Hide this component.</div>
\r
1262 <div class="long">
\r
1263 Hide this component. <div class="mdetail-params">
\r
1264 <strong>Parameters:</strong>
\r
1265 <ul><li>None.</li> </ul>
\r
1266 <strong>Returns:</strong>
\r
1268 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
1274 <td class="msource"><a ext:cls="Ext.Component" ext:member="#hide" href="output/Ext.Component.html#hide">Component</a></td>
\r
1276 <tr class="method-row alt expandable">
\r
1277 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1279 <a id="Ext.Toolbar-insertButton"></a>
\r
1280 <b>insertButton</b>( <code>Number index</code>, <code>Object/Ext.Toolbar.Item/Ext.Toolbar.Button/Array item</code> ) : Ext.Toolbar.Button/Item <div class="mdesc">
\r
1281 <div class="short">Inserts any <a ext:cls="Ext.Toolbar.Item" href="output/Ext.Toolbar.Item.html">Ext.Toolbar.Item</a>/<a ext:cls="Ext.Toolbar.Button" href="output/Ext.Toolbar.Button.html">Ext.Toolbar.Button</a> at the specified index.</div>
\r
1282 <div class="long">
\r
1283 Inserts any <a ext:cls="Ext.Toolbar.Item" href="output/Ext.Toolbar.Item.html">Ext.Toolbar.Item</a>/<a ext:cls="Ext.Toolbar.Button" href="output/Ext.Toolbar.Button.html">Ext.Toolbar.Button</a> at the specified index. <div class="mdetail-params">
\r
1284 <strong>Parameters:</strong>
\r
1285 <ul><li><code>index</code> : Number<div class="sub-desc">The index where the item is to be inserted</div></li><li><code>item</code> : Object/Ext.Toolbar.Item/Ext.Toolbar.Button/Array<div class="sub-desc">The button, or button config object to be
1286 inserted, or an array of buttons/configs.</div></li> </ul>
\r
1287 <strong>Returns:</strong>
\r
1289 <li><code>Ext.Toolbar.Button/Item</code></li>
\r
1295 <td class="msource">Toolbar</td>
\r
1297 <tr class="method-row inherited expandable">
\r
1298 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1300 <a id="Ext.Toolbar-isVisible"></a>
\r
1301 <b>isVisible</b>() : void <div class="mdesc">
\r
1302 <div class="short">Returns true if this component is visible.</div>
\r
1303 <div class="long">
\r
1304 Returns true if this component is visible. <div class="mdetail-params">
\r
1305 <strong>Parameters:</strong>
\r
1306 <ul><li>None.</li> </ul>
\r
1307 <strong>Returns:</strong>
\r
1309 <li><code>void</code></li>
\r
1315 <td class="msource"><a ext:cls="Ext.Component" ext:member="#isVisible" href="output/Ext.Component.html#isVisible">Component</a></td>
\r
1317 <tr class="method-row inherited alt expandable">
\r
1318 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1320 <a id="Ext.Toolbar-isXType"></a>
\r
1321 <b>isXType</b>( <code>String xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span> ) : void <div class="mdesc">
\r
1322 <div class="short">Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended
1324 <div class="long">
\r
1325 <p>Tests whether or not this Component is of a specific xtype. This can test whether this Component is descended
1326 from the xtype (default) or whether it is directly of the xtype specified (shallow = true).</p>
1327 <p><b>If using your own subclasses, be aware that a Component must register its own xtype
1328 to participate in determination of inherited xtypes.</b></p>
1329 <p>For a list of all available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header.</p>
1330 <p>Example usage:</p>
1331 <pre><code>var t = <b>new</b> Ext.form.TextField();
1332 <b>var</b> isText = t.isXType(<em>'textfield'</em>); <i>// true</i>
1333 <b>var</b> isBoxSubclass = t.isXType(<em>'box'</em>); <i>// true, descended from BoxComponent</i>
1334 <b>var</b> isBoxInstance = t.isXType(<em>'box'</em>, true); // false, not a direct BoxComponent instance</code></pre> <div class="mdetail-params">
\r
1335 <strong>Parameters:</strong>
\r
1336 <ul><li><code>xtype</code> : String<div class="sub-desc">The xtype to check for this Component</div></li><li><code>shallow</code> : Boolean<div class="sub-desc">(optional) False to check whether this Component is descended from the xtype (this is
1337 the default), or true to check whether this Component is directly of the specified xtype.</div></li> </ul>
\r
1338 <strong>Returns:</strong>
\r
1340 <li><code>void</code></li>
\r
1346 <td class="msource"><a ext:cls="Ext.Component" ext:member="#isXType" href="output/Ext.Component.html#isXType">Component</a></td>
\r
1348 <tr class="method-row inherited expandable">
\r
1349 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1351 <a id="Ext.Toolbar-on"></a>
\r
1352 <b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
\r
1353 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
\r
1354 <div class="long">
\r
1355 Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
\r
1356 <strong>Parameters:</strong>
\r
1357 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
1358 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
\r
1359 <strong>Returns:</strong>
\r
1361 <li><code>void</code></li>
\r
1367 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
\r
1369 <tr class="method-row inherited alt expandable">
\r
1370 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1372 <a id="Ext.Toolbar-purgeListeners"></a>
\r
1373 <b>purgeListeners</b>() : void <div class="mdesc">
\r
1374 <div class="short">Removes all listeners for this object</div>
\r
1375 <div class="long">
\r
1376 Removes all listeners for this object <div class="mdetail-params">
\r
1377 <strong>Parameters:</strong>
\r
1378 <ul><li>None.</li> </ul>
\r
1379 <strong>Returns:</strong>
\r
1381 <li><code>void</code></li>
\r
1387 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
\r
1389 <tr class="method-row inherited expandable">
\r
1390 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1392 <a id="Ext.Toolbar-relayEvents"></a>
\r
1393 <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc">
\r
1394 <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>
\r
1395 <div class="long">
\r
1396 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params">
\r
1397 <strong>Parameters:</strong>
\r
1398 <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li> </ul>
\r
1399 <strong>Returns:</strong>
\r
1401 <li><code>void</code></li>
\r
1407 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>
\r
1409 <tr class="method-row inherited alt expandable">
\r
1410 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1412 <a id="Ext.Toolbar-removeClass"></a>
\r
1413 <b>removeClass</b>( <code>string cls</code> ) : void <div class="mdesc">
\r
1414 <div class="short">Removes a CSS class from the component's underlying element.</div>
\r
1415 <div class="long">
\r
1416 Removes a CSS class from the component's underlying element. <div class="mdetail-params">
\r
1417 <strong>Parameters:</strong>
\r
1418 <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to remove</div></li> </ul>
\r
1419 <strong>Returns:</strong>
\r
1421 <li><code>void</code></li>
\r
1427 <td class="msource"><a ext:cls="Ext.Component" ext:member="#removeClass" href="output/Ext.Component.html#removeClass">Component</a></td>
\r
1429 <tr class="method-row inherited expandable">
\r
1430 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1432 <a id="Ext.Toolbar-removeListener"></a>
\r
1433 <b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
1434 <div class="short">Removes a listener</div>
\r
1435 <div class="long">
\r
1436 Removes a listener <div class="mdetail-params">
\r
1437 <strong>Parameters:</strong>
\r
1438 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
\r
1439 <strong>Returns:</strong>
\r
1441 <li><code>void</code></li>
\r
1447 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
\r
1449 <tr class="method-row inherited alt expandable">
\r
1450 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1452 <a id="Ext.Toolbar-render"></a>
\r
1453 <b>render</b>( <span class="optional" title="Optional">[<code>Element/HTMLElement/String container</code>]</span>, <span class="optional" title="Optional">[<code>String/Number position</code>]</span> ) : void <div class="mdesc">
\r
1454 <div class="short">Render this Component into the passed HTML element.
1455 If you are using a Container object to house this Component, then...</div>
\r
1456 <div class="long">
\r
1457 <p>Render this Component into the passed HTML element.</p>
1458 <p><b>If you are using a <a ext:cls="Ext.Container" href="output/Ext.Container.html">Container</a> object to house this Component, then
1459 do not use the render method.</b></p>
1460 <p>A Container's child Components are rendered by that Container's
1461 <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager when the Container is first rendered.</p>
1462 <p>Certain layout managers allow dynamic addition of child components. Those that do
1463 include <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a>, <a ext:cls="Ext.layout.AnchorLayout" href="output/Ext.layout.AnchorLayout.html">Ext.layout.AnchorLayout</a>,
1464 <a ext:cls="Ext.layout.FormLayout" href="output/Ext.layout.FormLayout.html">Ext.layout.FormLayout</a>, <a ext:cls="Ext.layout.TableLayout" href="output/Ext.layout.TableLayout.html">Ext.layout.TableLayout</a>.</p>
1465 <p>If the Container is already rendered when a new child Component is added, you may need to call
1466 the Container's <a ext:cls="Ext.Container" ext:member="doLayout" href="output/Ext.Container.html#doLayout">doLayout</a> to refresh the view which causes any
1467 unrendered child Components to be rendered. This is required so that you can add multiple
1468 child components if needed while only refreshing the layout once.</p>
1469 <p>When creating complex UIs, it is important to remember that sizing and positioning
1470 of child items is the responsibility of the Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> manager.
1471 If you expect child items to be sized in response to user interactions, you must
1472 configure the Container with a layout manager which creates and manages the type of layout you
1474 <p><b>Omitting the Container's <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">layout</a> config means that a basic
1475 layout manager is used which does nothing but render child components sequentially into the
1476 Container. No sizing or positioning will be performed in this situation.</b></p> <div class="mdetail-params">
\r
1477 <strong>Parameters:</strong>
\r
1478 <ul><li><code>container</code> : Element/HTMLElement/String<div class="sub-desc">(optional) The element this Component should be
1479 rendered into. If it is being created from existing markup, this should be omitted.</div></li><li><code>position</code> : String/Number<div class="sub-desc">(optional) The element ID or DOM node index within the container <b>before</b>
1480 which this component will be inserted (defaults to appending to the end of the container)</div></li> </ul>
\r
1481 <strong>Returns:</strong>
\r
1483 <li><code>void</code></li>
\r
1489 <td class="msource"><a ext:cls="Ext.Component" ext:member="#render" href="output/Ext.Component.html#render">Component</a></td>
\r
1491 <tr class="method-row inherited expandable">
\r
1492 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1494 <a id="Ext.Toolbar-resumeEvents"></a>
\r
1495 <b>resumeEvents</b>() : void <div class="mdesc">
\r
1496 <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
\r
1497 <div class="long">
\r
1498 Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
\r
1499 <strong>Parameters:</strong>
\r
1500 <ul><li>None.</li> </ul>
\r
1501 <strong>Returns:</strong>
\r
1503 <li><code>void</code></li>
\r
1509 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
\r
1511 <tr class="method-row inherited alt expandable">
\r
1512 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1514 <a id="Ext.Toolbar-setDisabled"></a>
\r
1515 <b>setDisabled</b>( <code>Boolean disabled</code> ) : void <div class="mdesc">
\r
1516 <div class="short">Convenience function for setting disabled/enabled by boolean.</div>
\r
1517 <div class="long">
\r
1518 Convenience function for setting disabled/enabled by boolean. <div class="mdetail-params">
\r
1519 <strong>Parameters:</strong>
\r
1520 <ul><li><code>disabled</code> : Boolean<div class="sub-desc"></div></li> </ul>
\r
1521 <strong>Returns:</strong>
\r
1523 <li><code>void</code></li>
\r
1529 <td class="msource"><a ext:cls="Ext.Component" ext:member="#setDisabled" href="output/Ext.Component.html#setDisabled">Component</a></td>
\r
1531 <tr class="method-row inherited expandable">
\r
1532 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1534 <a id="Ext.Toolbar-setHeight"></a>
\r
1535 <b>setHeight</b>( <code>Number height</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1536 <div class="short">Sets the height of the component. This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.</div>
\r
1537 <div class="long">
\r
1538 Sets the height of the component. This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event. <div class="mdetail-params">
\r
1539 <strong>Parameters:</strong>
\r
1540 <ul><li><code>height</code> : Number<div class="sub-desc">The new height to set</div></li> </ul>
\r
1541 <strong>Returns:</strong>
\r
1543 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1549 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setHeight" href="output/Ext.BoxComponent.html#setHeight">BoxComponent</a></td>
\r
1551 <tr class="method-row inherited alt expandable">
\r
1552 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1554 <a id="Ext.Toolbar-setPagePosition"></a>
\r
1555 <b>setPagePosition</b>( <code>Number x</code>, <code>Number y</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1556 <div class="short">Sets the page XY position of the component. To set the left and top instead, use setPosition.
1557 This method fires the ...</div>
\r
1558 <div class="long">
\r
1559 Sets the page XY position of the component. To set the left and top instead, use <a ext:cls="Ext.BoxComponent" ext:member="setPosition" href="output/Ext.BoxComponent.html#setPosition">setPosition</a>.
1560 This method fires the <a ext:cls="Ext.BoxComponent" ext:member="move" href="output/Ext.BoxComponent.html#move">move</a> event. <div class="mdetail-params">
\r
1561 <strong>Parameters:</strong>
\r
1562 <ul><li><code>x</code> : Number<div class="sub-desc">The new x position</div></li><li><code>y</code> : Number<div class="sub-desc">The new y position</div></li> </ul>
\r
1563 <strong>Returns:</strong>
\r
1565 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1571 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setPagePosition" href="output/Ext.BoxComponent.html#setPagePosition">BoxComponent</a></td>
\r
1573 <tr class="method-row inherited expandable">
\r
1574 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1576 <a id="Ext.Toolbar-setPosition"></a>
\r
1577 <b>setPosition</b>( <code>Number left</code>, <code>Number top</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1578 <div class="short">Sets the left and top of the component. To set the page XY position instead, use setPagePosition.
1579 This method fires ...</div>
\r
1580 <div class="long">
\r
1581 Sets the left and top of the component. To set the page XY position instead, use <a ext:cls="Ext.BoxComponent" ext:member="setPagePosition" href="output/Ext.BoxComponent.html#setPagePosition">setPagePosition</a>.
1582 This method fires the <a ext:cls="Ext.BoxComponent" ext:member="move" href="output/Ext.BoxComponent.html#move">move</a> event. <div class="mdetail-params">
\r
1583 <strong>Parameters:</strong>
\r
1584 <ul><li><code>left</code> : Number<div class="sub-desc">The new left</div></li><li><code>top</code> : Number<div class="sub-desc">The new top</div></li> </ul>
\r
1585 <strong>Returns:</strong>
\r
1587 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1593 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setPosition" href="output/Ext.BoxComponent.html#setPosition">BoxComponent</a></td>
\r
1595 <tr class="method-row inherited alt expandable">
\r
1596 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1598 <a id="Ext.Toolbar-setSize"></a>
\r
1599 <b>setSize</b>( <code>Number/Object width</code>, <code>Number height</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1600 <div class="short">Sets the width and height of the component. This method fires the resize event. This method can accept
1601 either width...</div>
\r
1602 <div class="long">
\r
1603 Sets the width and height of the component. This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event. This method can accept
1604 either width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}. <div class="mdetail-params">
\r
1605 <strong>Parameters:</strong>
\r
1606 <ul><li><code>width</code> : Number/Object<div class="sub-desc">The new width to set, or a size object in the format {width, height}</div></li><li><code>height</code> : Number<div class="sub-desc">The new height to set (not required if a size object is passed as the first arg)</div></li> </ul>
\r
1607 <strong>Returns:</strong>
\r
1609 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1615 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setSize" href="output/Ext.BoxComponent.html#setSize">BoxComponent</a></td>
\r
1617 <tr class="method-row inherited expandable">
\r
1618 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1620 <a id="Ext.Toolbar-setVisible"></a>
\r
1621 <b>setVisible</b>( <code>Boolean visible</code> ) : Ext.Component <div class="mdesc">
\r
1622 <div class="short">Convenience function to hide or show this component by boolean.</div>
\r
1623 <div class="long">
\r
1624 Convenience function to hide or show this component by boolean. <div class="mdetail-params">
\r
1625 <strong>Parameters:</strong>
\r
1626 <ul><li><code>visible</code> : Boolean<div class="sub-desc">True to show, false to hide</div></li> </ul>
\r
1627 <strong>Returns:</strong>
\r
1629 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
1635 <td class="msource"><a ext:cls="Ext.Component" ext:member="#setVisible" href="output/Ext.Component.html#setVisible">Component</a></td>
\r
1637 <tr class="method-row inherited alt expandable">
\r
1638 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1640 <a id="Ext.Toolbar-setWidth"></a>
\r
1641 <b>setWidth</b>( <code>Number width</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1642 <div class="short">Sets the width of the component. This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event.</div>
\r
1643 <div class="long">
\r
1644 Sets the width of the component. This method fires the <a ext:cls="Ext.BoxComponent" ext:member="resize" href="output/Ext.BoxComponent.html#resize">resize</a> event. <div class="mdetail-params">
\r
1645 <strong>Parameters:</strong>
\r
1646 <ul><li><code>width</code> : Number<div class="sub-desc">The new width to set</div></li> </ul>
\r
1647 <strong>Returns:</strong>
\r
1649 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1655 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#setWidth" href="output/Ext.BoxComponent.html#setWidth">BoxComponent</a></td>
\r
1657 <tr class="method-row inherited expandable">
\r
1658 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1660 <a id="Ext.Toolbar-show"></a>
\r
1661 <b>show</b>() : Ext.Component <div class="mdesc">
\r
1662 <div class="short">Show this component.</div>
\r
1663 <div class="long">
\r
1664 Show this component. <div class="mdetail-params">
\r
1665 <strong>Parameters:</strong>
\r
1666 <ul><li>None.</li> </ul>
\r
1667 <strong>Returns:</strong>
\r
1669 <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
\r
1675 <td class="msource"><a ext:cls="Ext.Component" ext:member="#show" href="output/Ext.Component.html#show">Component</a></td>
\r
1677 <tr class="method-row inherited alt expandable">
\r
1678 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1680 <a id="Ext.Toolbar-suspendEvents"></a>
\r
1681 <b>suspendEvents</b>() : void <div class="mdesc">
\r
1682 <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
\r
1683 <div class="long">
\r
1684 Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
\r
1685 <strong>Parameters:</strong>
\r
1686 <ul><li>None.</li> </ul>
\r
1687 <strong>Returns:</strong>
\r
1689 <li><code>void</code></li>
\r
1695 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
\r
1697 <tr class="method-row inherited expandable">
\r
1698 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1700 <a id="Ext.Toolbar-syncSize"></a>
\r
1701 <b>syncSize</b>() : Ext.BoxComponent <div class="mdesc">
\r
1702 <div class="short">Force the component's size to recalculate based on the underlying element's current height and width.</div>
\r
1703 <div class="long">
\r
1704 Force the component's size to recalculate based on the underlying element's current height and width. <div class="mdetail-params">
\r
1705 <strong>Parameters:</strong>
\r
1706 <ul><li>None.</li> </ul>
\r
1707 <strong>Returns:</strong>
\r
1709 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1715 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#syncSize" href="output/Ext.BoxComponent.html#syncSize">BoxComponent</a></td>
\r
1717 <tr class="method-row inherited alt expandable">
\r
1718 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1720 <a id="Ext.Toolbar-un"></a>
\r
1721 <b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
\r
1722 <div class="short">Removes a listener (shorthand for removeListener)</div>
\r
1723 <div class="long">
\r
1724 Removes a listener (shorthand for removeListener) <div class="mdetail-params">
\r
1725 <strong>Parameters:</strong>
\r
1726 <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
\r
1727 <strong>Returns:</strong>
\r
1729 <li><code>void</code></li>
\r
1735 <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
\r
1737 <tr class="method-row inherited expandable">
\r
1738 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1740 <a id="Ext.Toolbar-updateBox"></a>
\r
1741 <b>updateBox</b>( <code>Object box</code> ) : Ext.BoxComponent <div class="mdesc">
\r
1742 <div class="short">Sets the current box measurements of the component's underlying element.</div>
\r
1743 <div class="long">
\r
1744 Sets the current box measurements of the component's underlying element. <div class="mdetail-params">
\r
1745 <strong>Parameters:</strong>
\r
1746 <ul><li><code>box</code> : Object<div class="sub-desc">An object in the format {x, y, width, height}</div></li> </ul>
\r
1747 <strong>Returns:</strong>
\r
1749 <li><code>Ext.BoxComponent</code><div class="sub-desc">this</div></li>
\r
1755 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#updateBox" href="output/Ext.BoxComponent.html#updateBox">BoxComponent</a></td>
\r
1758 <a id="Ext.Toolbar-events"></a>
1759 <h2>Public Events</h2>
1760 <table cellspacing="0" class="member-table">
1762 <th class="sig-header" colspan="2">Event</th>
1763 <th class="msource-header">Defined By</th>
1765 <tr class="event-row inherited expandable">
\r
1766 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1768 <a id="Ext.Toolbar-beforedestroy"></a>
\r
1769 <b>beforedestroy</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1770 <div class="short">Fires before the component is destroyed. Return false to stop the destroy.</div>
\r
1771 <div class="long">
\r
1772 Fires before the component is destroyed. Return false to stop the destroy. <div class="mdetail-params">
\r
1773 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1774 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1779 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforedestroy" href="output/Ext.Component.html#event-beforedestroy">Component</a></td>
\r
1781 <tr class="event-row inherited alt expandable">
\r
1782 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1784 <a id="Ext.Toolbar-beforehide"></a>
\r
1785 <b>beforehide</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1786 <div class="short">Fires before the component is hidden. Return false to stop the hide.</div>
\r
1787 <div class="long">
\r
1788 Fires before the component is hidden. Return false to stop the hide. <div class="mdetail-params">
\r
1789 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1790 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1795 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforehide" href="output/Ext.Component.html#event-beforehide">Component</a></td>
\r
1797 <tr class="event-row inherited expandable">
\r
1798 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1800 <a id="Ext.Toolbar-beforerender"></a>
\r
1801 <b>beforerender</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1802 <div class="short">Fires before the component is rendered. Return false to stop the render.</div>
\r
1803 <div class="long">
\r
1804 Fires before the component is rendered. Return false to stop the render. <div class="mdetail-params">
\r
1805 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1806 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1811 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforerender" href="output/Ext.Component.html#event-beforerender">Component</a></td>
\r
1813 <tr class="event-row inherited alt expandable">
\r
1814 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1816 <a id="Ext.Toolbar-beforeshow"></a>
\r
1817 <b>beforeshow</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1818 <div class="short">Fires before the component is shown. Return false to stop the show.</div>
\r
1819 <div class="long">
\r
1820 Fires before the component is shown. Return false to stop the show. <div class="mdetail-params">
\r
1821 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1822 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1827 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforeshow" href="output/Ext.Component.html#event-beforeshow">Component</a></td>
\r
1829 <tr class="event-row inherited expandable">
\r
1830 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1832 <a id="Ext.Toolbar-beforestaterestore"></a>
\r
1833 <b>beforestaterestore</b> : ( <code>Ext.Component this</code>, <code>Object state</code> ) <div class="mdesc">
\r
1834 <div class="short">Fires before the state of the component is restored. Return false to stop the restore.</div>
\r
1835 <div class="long">
\r
1836 Fires before the state of the component is restored. Return false to stop the restore. <div class="mdetail-params">
\r
1837 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1838 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
\r
1843 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestaterestore" href="output/Ext.Component.html#event-beforestaterestore">Component</a></td>
\r
1845 <tr class="event-row inherited alt expandable">
\r
1846 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1848 <a id="Ext.Toolbar-beforestatesave"></a>
\r
1849 <b>beforestatesave</b> : ( <code>Ext.Component this</code>, <code>Object state</code> ) <div class="mdesc">
\r
1850 <div class="short">Fires before the state of the component is saved to the configured state provider. Return false to stop the save.</div>
\r
1851 <div class="long">
\r
1852 Fires before the state of the component is saved to the configured state provider. Return false to stop the save. <div class="mdetail-params">
\r
1853 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1854 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
\r
1859 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestatesave" href="output/Ext.Component.html#event-beforestatesave">Component</a></td>
\r
1861 <tr class="event-row inherited expandable">
\r
1862 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1864 <a id="Ext.Toolbar-destroy"></a>
\r
1865 <b>destroy</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1866 <div class="short">Fires after the component is destroyed.</div>
\r
1867 <div class="long">
\r
1868 Fires after the component is destroyed. <div class="mdetail-params">
\r
1869 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1870 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1875 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-destroy" href="output/Ext.Component.html#event-destroy">Component</a></td>
\r
1877 <tr class="event-row inherited alt expandable">
\r
1878 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1880 <a id="Ext.Toolbar-disable"></a>
\r
1881 <b>disable</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1882 <div class="short">Fires after the component is disabled.</div>
\r
1883 <div class="long">
\r
1884 Fires after the component is disabled. <div class="mdetail-params">
\r
1885 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1886 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1891 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-disable" href="output/Ext.Component.html#event-disable">Component</a></td>
\r
1893 <tr class="event-row inherited expandable">
\r
1894 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1896 <a id="Ext.Toolbar-enable"></a>
\r
1897 <b>enable</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1898 <div class="short">Fires after the component is enabled.</div>
\r
1899 <div class="long">
\r
1900 Fires after the component is enabled. <div class="mdetail-params">
\r
1901 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1902 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1907 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-enable" href="output/Ext.Component.html#event-enable">Component</a></td>
\r
1909 <tr class="event-row inherited alt expandable">
\r
1910 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1912 <a id="Ext.Toolbar-hide"></a>
\r
1913 <b>hide</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1914 <div class="short">Fires after the component is hidden.</div>
\r
1915 <div class="long">
\r
1916 Fires after the component is hidden. <div class="mdetail-params">
\r
1917 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1918 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1923 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-hide" href="output/Ext.Component.html#event-hide">Component</a></td>
\r
1925 <tr class="event-row inherited expandable">
\r
1926 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1928 <a id="Ext.Toolbar-move"></a>
\r
1929 <b>move</b> : ( <code>Ext.Component this</code>, <code>Number x</code>, <code>Number y</code> ) <div class="mdesc">
\r
1930 <div class="short">Fires after the component is moved.</div>
\r
1931 <div class="long">
\r
1932 Fires after the component is moved. <div class="mdetail-params">
\r
1933 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1934 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>x</code> : Number<div class="sub-desc">The new x position</div></li><li><code>y</code> : Number<div class="sub-desc">The new y position</div></li> </ul>
\r
1939 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#event-move" href="output/Ext.BoxComponent.html#event-move">BoxComponent</a></td>
\r
1941 <tr class="event-row inherited alt expandable">
\r
1942 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1944 <a id="Ext.Toolbar-render"></a>
\r
1945 <b>render</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1946 <div class="short">Fires after the component is rendered.</div>
\r
1947 <div class="long">
\r
1948 Fires after the component is rendered. <div class="mdetail-params">
\r
1949 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1950 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1955 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-render" href="output/Ext.Component.html#event-render">Component</a></td>
\r
1957 <tr class="event-row inherited expandable">
\r
1958 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1960 <a id="Ext.Toolbar-resize"></a>
\r
1961 <b>resize</b> : ( <code>Ext.Component this</code>, <code>Number adjWidth</code>, <code>Number adjHeight</code>, <code>Number rawWidth</code>, <code>Number rawHeight</code> ) <div class="mdesc">
\r
1962 <div class="short">Fires after the component is resized.</div>
\r
1963 <div class="long">
\r
1964 Fires after the component is resized. <div class="mdetail-params">
\r
1965 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1966 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>adjWidth</code> : Number<div class="sub-desc">The box-adjusted width that was set</div></li><li><code>adjHeight</code> : Number<div class="sub-desc">The box-adjusted height that was set</div></li><li><code>rawWidth</code> : Number<div class="sub-desc">The width that was originally specified</div></li><li><code>rawHeight</code> : Number<div class="sub-desc">The height that was originally specified</div></li> </ul>
\r
1971 <td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#event-resize" href="output/Ext.BoxComponent.html#event-resize">BoxComponent</a></td>
\r
1973 <tr class="event-row inherited alt expandable">
\r
1974 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1976 <a id="Ext.Toolbar-show"></a>
\r
1977 <b>show</b> : ( <code>Ext.Component this</code> ) <div class="mdesc">
\r
1978 <div class="short">Fires after the component is shown.</div>
\r
1979 <div class="long">
\r
1980 Fires after the component is shown. <div class="mdetail-params">
\r
1981 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1982 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
\r
1987 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-show" href="output/Ext.Component.html#event-show">Component</a></td>
\r
1989 <tr class="event-row inherited expandable">
\r
1990 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
1992 <a id="Ext.Toolbar-staterestore"></a>
\r
1993 <b>staterestore</b> : ( <code>Ext.Component this</code>, <code>Object state</code> ) <div class="mdesc">
\r
1994 <div class="short">Fires after the state of the component is restored.</div>
\r
1995 <div class="long">
\r
1996 Fires after the state of the component is restored. <div class="mdetail-params">
\r
1997 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
1998 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
\r
2003 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-staterestore" href="output/Ext.Component.html#event-staterestore">Component</a></td>
\r
2005 <tr class="event-row inherited alt expandable">
\r
2006 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
2008 <a id="Ext.Toolbar-statesave"></a>
\r
2009 <b>statesave</b> : ( <code>Ext.Component this</code>, <code>Object state</code> ) <div class="mdesc">
\r
2010 <div class="short">Fires after the state of the component is saved to the configured state provider.</div>
\r
2011 <div class="long">
\r
2012 Fires after the state of the component is saved to the configured state provider. <div class="mdetail-params">
\r
2013 <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
\r
2014 <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
\r
2019 <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-statesave" href="output/Ext.Component.html#event-statesave">Component</a></td>
\r