Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / source / Fill.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5   <title>The source code</title>
6   <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../prettify/prettify.js"></script>
8   <style type="text/css">
9     .highlight { display: block; background-color: #ddd; }
10   </style>
11   <script type="text/javascript">
12     function highlight() {
13       document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
14     }
15   </script>
16 </head>
17 <body onload="prettyPrint(); highlight();">
18   <pre class="prettyprint lang-js"><span id='Ext-toolbar-Fill'>/**
19 </span> * @class Ext.toolbar.Fill
20  * @extends Ext.Component
21  *
22  * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using
23  * the right-justified button container.
24  *
25  * {@img Ext.toolbar.Fill/Ext.toolbar.Fill.png Toolbar Fill}
26  *
27  * ## Example
28  *
29  *     Ext.create('Ext.panel.Panel', {
30  *          title: 'Toolbar Fill Example',
31  *          width: 300,
32  *          height: 200,
33  *          tbar : [
34  *              'Item 1',
35  *              {xtype: 'tbfill'}, // or '-&gt;'
36  *              'Item 2'
37  *          ],
38  *          renderTo: Ext.getBody()
39  *      });
40  *
41  */
42 Ext.define('Ext.toolbar.Fill', {
43     extend: 'Ext.Component',
44     alias: 'widget.tbfill',
45     alternateClassName: 'Ext.Toolbar.Fill',
46     isFill : true,
47     flex: 1
48 });</pre>
49 </body>
50 </html>