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