Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / toolbar / Fill.js
1 /**
2  * @class Ext.toolbar.Fill
3  * @extends Ext.Component
4  * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using
5  * the right-justified button container.
6  *
7  * {@img Ext.toolbar.Fill/Ext.toolbar.Fill.png Toolbar Fill}
8  * Example usage:
9 <pre><code>
10     Ext.create('Ext.panel.Panel', {
11         title: 'Toolbar Fill Example',
12         width: 300,
13         height: 200,
14         tbar : [
15             'Item 1',
16             {xtype: 'tbfill'}, // or '->'
17             'Item 2'
18         ],
19         renderTo: Ext.getBody()
20     });
21 </code></pre>
22  * @constructor
23  * Creates a new Fill
24  * @xtype tbfill
25  */
26 Ext.define('Ext.toolbar.Fill', {
27     extend: 'Ext.Component',
28     alias: 'widget.tbfill',
29     alternateClassName: 'Ext.Toolbar.Fill',
30     isFill : true,
31     flex: 1
32 });