Upgrade to ExtJS 4.0.7 - Released 10/19/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="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../resources/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> * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using
20  * the right-justified button container.
21  *
22  *     @example
23  *     Ext.create('Ext.panel.Panel', {
24  *          title: 'Toolbar Fill Example',
25  *          width: 300,
26  *          height: 200,
27  *          tbar : [
28  *              'Item 1',
29  *              { xtype: 'tbfill' },
30  *              'Item 2'
31  *          ],
32  *          renderTo: Ext.getBody()
33  *      });
34  */
35 Ext.define('Ext.toolbar.Fill', {
36     extend: 'Ext.Component',
37     alias: 'widget.tbfill',
38     alternateClassName: 'Ext.Toolbar.Fill',
39     isFill : true,
40     flex: 1
41 });</pre>
42 </body>
43 </html>