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 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
17 * add one of these by using "-" in your call to add() or in your items config rather than creating one directly.
20 * Ext.create('Ext.menu.Menu', {
23 * floating: false, // usually you want this set to True (default)
24 * renderTo: Ext.getBody(), // usually rendered by it's containing component
29 * xtype: 'menuseparator'
31 * text: 'seperator above',
33 * text: 'regular item',
37 Ext.define('Ext.menu.Separator', {
38 extend: 'Ext.menu.Item',
39 alias: 'widget.menuseparator',
42 * @cfg {String} activeCls @hide
46 * @cfg {Boolean} canActivate @hide
51 * @cfg {Boolean} clickHideDelay @hide
55 * @cfg {Boolean} destroyMenu @hide
59 * @cfg {Boolean} disabledCls @hide
65 * @cfg {String} href @hide
69 * @cfg {String} hrefTarget @hide
73 * @cfg {Boolean} hideOnClick @hide
78 * @cfg {String} icon @hide
82 * @cfg {String} iconCls @hide
86 * @cfg {Object} menu @hide
90 * @cfg {String} menuAlign @hide
94 * @cfg {Number} menuExpandDelay @hide
98 * @cfg {Number} menuHideDelay @hide
102 * @cfg {Boolean} plain @hide
107 * @cfg {String} separatorCls
108 * The CSS class used by the separator item to show the incised line.
109 * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`.
111 separatorCls: Ext.baseCSSPrefix + 'menu-item-separator',
114 * @cfg {String} text @hide
118 onRender: function(ct, pos) {
120 sepCls = me.separatorCls;
122 me.cls += ' ' + sepCls;
124 me.callParent(arguments);