4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-toolbar-Spacer'>/**
19 </span> * @class Ext.toolbar.Spacer
20 * @extends Ext.toolbar.Item
21 * A simple element that adds extra horizontal space between items in a toolbar.
22 * By default a 2px wide space is added via css specification:
24 * .x-toolbar .x-toolbar-spacer {
30 * {@img Ext.toolbar.Spacer/Ext.toolbar.Spacer.png Toolbar Spacer}
32 * Ext.create('Ext.panel.Panel', {
33 * title: 'Toolbar Spacer Example',
38 * {xtype: 'tbspacer'}, // or ' '
40 * // space width is also configurable via javascript
41 * {xtype: 'tbspacer', width: 50}, // add a 50px space
44 * renderTo: Ext.getBody()
48 Ext.define('Ext.toolbar.Spacer', {
49 extend: 'Ext.Component',
50 alias: 'widget.tbspacer',
51 alternateClassName: 'Ext.Toolbar.Spacer',
52 baseCls: Ext.baseCSSPrefix + 'toolbar-spacer',