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-menu-Separator-method-constructor'><span id='Ext-menu-Separator'>/**
19 </span></span> * @class Ext.menu.Separator
20 * @extends Ext.menu.Item
22 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
23 * add one of these by using "-" in your call to add() or in your items config rather than creating one directly.
25 * {@img Ext.menu.Separator/Ext.menu.Separator.png Ext.menu.Separator component}
29 * Ext.create('Ext.menu.Menu', {
32 * floating: false, // usually you want this set to True (default)
33 * renderTo: Ext.getBody(), // usually rendered by it's containing component
38 * xtype: 'menuseparator'
40 * text: 'seperator above',
42 * text: 'regular item',
46 * @xtype menuseparator
49 * @param {Object} config The config object
51 Ext.define('Ext.menu.Separator', {
52 extend: 'Ext.menu.Item',
53 alias: 'widget.menuseparator',
55 <span id='Ext-menu-Separator-cfg-activeCls'> /**
56 </span> * @cfg {String} activeCls @hide
59 <span id='Ext-menu-Separator-cfg-canActivate'> /**
60 </span> * @cfg {Boolean} canActivate @hide
64 <span id='Ext-menu-Separator-cfg-clickHideDelay'> /**
65 </span> * @cfg {Boolean} clickHideDelay @hide
68 <span id='Ext-menu-Separator-cfg-destroyMenu'> /**
69 </span> * @cfg {Boolean} destroyMenu @hide
72 <span id='Ext-menu-Separator-cfg-disabledCls'> /**
73 </span> * @cfg {Boolean} disabledCls @hide
78 <span id='Ext-menu-Separator-cfg-href'> /**
79 </span> * @cfg {String} href @hide
82 <span id='Ext-menu-Separator-cfg-hrefTarget'> /**
83 </span> * @cfg {String} hrefTarget @hide
86 <span id='Ext-menu-Separator-cfg-hideOnClick'> /**
87 </span> * @cfg {Boolean} hideOnClick @hide
91 <span id='Ext-menu-Separator-cfg-icon'> /**
92 </span> * @cfg {String} icon @hide
95 <span id='Ext-menu-Separator-cfg-iconCls'> /**
96 </span> * @cfg {String} iconCls @hide
99 <span id='Ext-menu-Separator-cfg-menu'> /**
100 </span> * @cfg {Mixed} menu @hide
103 <span id='Ext-menu-Separator-cfg-menuAlign'> /**
104 </span> * @cfg {String} menuAlign @hide
107 <span id='Ext-menu-Separator-cfg-menuExpandDelay'> /**
108 </span> * @cfg {Number} menuExpandDelay @hide
111 <span id='Ext-menu-Separator-cfg-menuHideDelay'> /**
112 </span> * @cfg {Number} menuHideDelay @hide
115 <span id='Ext-menu-Separator-cfg-plain'> /**
116 </span> * @cfg {Boolean} plain @hide
120 <span id='Ext-menu-Separator-cfg-separatorCls'> /**
121 </span> * @cfg {String} separatorCls
122 * The CSS class used by the separator item to show the incised line.
123 * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`.
126 separatorCls: Ext.baseCSSPrefix + 'menu-item-separator',
128 <span id='Ext-menu-Separator-cfg-text'> /**
129 </span> * @cfg {String} text @hide
133 onRender: function(ct, pos) {
135 sepCls = me.separatorCls;
137 me.cls += ' ' + sepCls;
139 Ext.applyIf(me.renderSelectors, {
140 itemSepEl: '.' + sepCls
143 me.callParent(arguments);