/** * A non-rendering placeholder item which instructs the Toolbar's Layout to begin using * the right-justified button container. * * @example * Ext.create('Ext.panel.Panel', { * title: 'Toolbar Fill Example', * width: 300, * height: 200, * tbar : [ * 'Item 1', * { xtype: 'tbfill' }, * 'Item 2' * ], * renderTo: Ext.getBody() * }); */Ext.define('Ext.toolbar.Fill', { extend: 'Ext.Component', // Toolbar required here because we'll try to decorate it's alternateClassName // with this class' alternate name requires: ['Ext.toolbar.Toolbar'], alias: 'widget.tbfill', alternateClassName: 'Ext.Toolbar.Fill', ariaRole: 'presentation', /** * @property {Boolean} isFill * `true` in this class to identify an object as an instantiated Fill, or subclass thereof. */ isFill : true, flex: 1});