3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * @class Ext.menu.Separator
17 * @extends Ext.menu.Item
19 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
20 * add one of these by using "-" in your call to add() or in your items config rather than creating one directly.
22 * {@img Ext.menu.Separator/Ext.menu.Separator.png Ext.menu.Separator component}
26 * Ext.create('Ext.menu.Menu', {
29 * floating: false, // usually you want this set to True (default)
30 * renderTo: Ext.getBody(), // usually rendered by it's containing component
35 * xtype: 'menuseparator'
37 * text: 'seperator above',
39 * text: 'regular item',
45 Ext.define('Ext.menu.Separator', {
46 extend: 'Ext.menu.Item',
47 alias: 'widget.menuseparator',
50 * @cfg {String} activeCls @hide
54 * @cfg {Boolean} canActivate @hide
59 * @cfg {Boolean} clickHideDelay @hide
63 * @cfg {Boolean} destroyMenu @hide
67 * @cfg {Boolean} disabledCls @hide
73 * @cfg {String} href @hide
77 * @cfg {String} hrefTarget @hide
81 * @cfg {Boolean} hideOnClick @hide
86 * @cfg {String} icon @hide
90 * @cfg {String} iconCls @hide
94 * @cfg {Mixed} menu @hide
98 * @cfg {String} menuAlign @hide
102 * @cfg {Number} menuExpandDelay @hide
106 * @cfg {Number} menuHideDelay @hide
110 * @cfg {Boolean} plain @hide
115 * @cfg {String} separatorCls
116 * The CSS class used by the separator item to show the incised line.
117 * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`.
120 separatorCls: Ext.baseCSSPrefix + 'menu-item-separator',
123 * @cfg {String} text @hide
127 onRender: function(ct, pos) {
129 sepCls = me.separatorCls;
131 me.cls += ' ' + sepCls;
133 Ext.applyIf(me.renderSelectors, {
134 itemSepEl: '.' + sepCls
137 me.callParent(arguments);