1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-toolbar.Spacer-method-constructor'><span id='Ext-toolbar.Spacer'>/**
2 </span></span> * @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 {
13 * {@img Ext.toolbar.Spacer/Ext.toolbar.Spacer.png Toolbar Spacer}
15 * Ext.create('Ext.panel.Panel', {
16 * title: 'Toolbar Spacer Example',
21 * {xtype: 'tbspacer'}, // or ' '
23 * // space width is also configurable via javascript
24 * {xtype: 'tbspacer', width: 50}, // add a 50px space
27 * renderTo: Ext.getBody()
31 * Creates a new Spacer
34 Ext.define('Ext.toolbar.Spacer', {
35 extend: 'Ext.Component',
36 alias: 'widget.tbspacer',
37 alternateClassName: 'Ext.Toolbar.Spacer',
38 baseCls: Ext.baseCSSPrefix + 'toolbar-spacer',
40 });</pre></pre></body></html>