2 * @class Ext.toolbar.Spacer
3 * @extends Ext.toolbar.Item
4 * A simple element that adds extra horizontal space between items in a toolbar.
5 * By default a 2px wide space is added via css specification:
7 .x-toolbar .x-toolbar-spacer {
11 * <p>Example usage:</p>
12 * {@img Ext.toolbar.Spacer/Ext.toolbar.Spacer.png Toolbar Spacer}
14 Ext.create('Ext.panel.Panel', {
15 title: 'Toolbar Spacer Example',
20 {xtype: 'tbspacer'}, // or ' '
22 // space width is also configurable via javascript
23 {xtype: 'tbspacer', width: 50}, // add a 50px space
26 renderTo: Ext.getBody()
30 * Creates a new Spacer
33 Ext.define('Ext.toolbar.Spacer', {
34 extend: 'Ext.Component',
35 alias: 'widget.tbspacer',
36 alternateClassName: 'Ext.Toolbar.Spacer',
37 baseCls: Ext.baseCSSPrefix + 'toolbar-spacer',