2 * @class Ext.menu.Separator
3 * @extends Ext.menu.Item
5 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
6 * add one of these by using "-" in your call to add() or in your items config rather than creating one directly.
8 * {@img Ext.menu.Separator/Ext.menu.Separator.png Ext.menu.Separator component}
12 * Ext.create('Ext.menu.Menu', {
15 * floating: false, // usually you want this set to True (default)
16 * renderTo: Ext.getBody(), // usually rendered by it's containing component
21 * xtype: 'menuseparator'
23 * text: 'seperator above',
25 * text: 'regular item',
29 * @xtype menuseparator
32 * @param {Object} config The config object
34 Ext.define('Ext.menu.Separator', {
35 extend: 'Ext.menu.Item',
36 alias: 'widget.menuseparator',
39 * @cfg {String} activeCls @hide
43 * @cfg {Boolean} canActivate @hide
48 * @cfg {Boolean} clickHideDelay @hide
52 * @cfg {Boolean} destroyMenu @hide
56 * @cfg {Boolean} disabledCls @hide
62 * @cfg {String} href @hide
66 * @cfg {String} hrefTarget @hide
70 * @cfg {Boolean} hideOnClick @hide
75 * @cfg {String} icon @hide
79 * @cfg {String} iconCls @hide
83 * @cfg {Mixed} menu @hide
87 * @cfg {String} menuAlign @hide
91 * @cfg {Number} menuExpandDelay @hide
95 * @cfg {Number} menuHideDelay @hide
99 * @cfg {Boolean} plain @hide
104 * @cfg {String} separatorCls
105 * The CSS class used by the separator item to show the incised line.
106 * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`.
109 separatorCls: Ext.baseCSSPrefix + 'menu-item-separator',
112 * @cfg {String} text @hide
116 onRender: function(ct, pos) {
118 sepCls = me.separatorCls;
120 me.cls += ' ' + sepCls;
122 Ext.applyIf(me.renderSelectors, {
123 itemSepEl: '.' + sepCls
126 me.callParent(arguments);