X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/toolbar/Fill.js?ds=inline diff --git a/src/toolbar/Fill.js b/src/toolbar/Fill.js new file mode 100644 index 00000000..1bebdfa8 --- /dev/null +++ b/src/toolbar/Fill.js @@ -0,0 +1,32 @@ +/** + * @class Ext.toolbar.Fill + * @extends Ext.Component + * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using + * the right-justified button container. + * + * {@img Ext.toolbar.Fill/Ext.toolbar.Fill.png Toolbar Fill} + * Example usage: +

+    Ext.create('Ext.panel.Panel', {
+        title: 'Toolbar Fill Example',
+        width: 300,
+        height: 200,
+        tbar : [
+            'Item 1',
+            {xtype: 'tbfill'}, // or '->'
+            'Item 2'
+        ],
+        renderTo: Ext.getBody()
+    });
+
+ * @constructor + * Creates a new Fill + * @xtype tbfill + */ +Ext.define('Ext.toolbar.Fill', { + extend: 'Ext.Component', + alias: 'widget.tbfill', + alternateClassName: 'Ext.Toolbar.Fill', + isFill : true, + flex: 1 +}); \ No newline at end of file