4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/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> * A simple element that adds extra horizontal space between items in a toolbar.
20 * By default a 2px wide space is added via CSS specification:
22 * .x-toolbar .x-toolbar-spacer {
29 * Ext.create('Ext.panel.Panel', {
30 * title: 'Toolbar Spacer Example',
35 * { xtype: 'tbspacer' }, // or ' '
37 * // space width is also configurable via javascript
38 * { xtype: 'tbspacer', width: 50 }, // add a 50px space
41 * renderTo: Ext.getBody()
44 Ext.define('Ext.toolbar.Spacer', {
45 extend: 'Ext.Component',
46 alias: 'widget.tbspacer',
47 alternateClassName: 'Ext.Toolbar.Spacer',
48 baseCls: Ext.baseCSSPrefix + 'toolbar-spacer',