1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-menu.Separator-method-constructor'><span id='Ext-menu.Separator'>/**
2 </span></span> * @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',
38 <span id='Ext-menu.Separator-cfg-activeCls'> /**
39 </span> * @cfg {String} activeCls @hide
42 <span id='Ext-menu.Separator-cfg-canActivate'> /**
43 </span> * @cfg {Boolean} canActivate @hide
47 <span id='Ext-menu.Separator-cfg-clickHideDelay'> /**
48 </span> * @cfg {Boolean} clickHideDelay @hide
51 <span id='Ext-menu.Separator-cfg-destroyMenu'> /**
52 </span> * @cfg {Boolean} destroyMenu @hide
55 <span id='Ext-menu.Separator-cfg-disabledCls'> /**
56 </span> * @cfg {Boolean} disabledCls @hide
61 <span id='Ext-menu.Separator-cfg-href'> /**
62 </span> * @cfg {String} href @hide
65 <span id='Ext-menu.Separator-cfg-hrefTarget'> /**
66 </span> * @cfg {String} hrefTarget @hide
69 <span id='Ext-menu.Separator-cfg-hideOnClick'> /**
70 </span> * @cfg {Boolean} hideOnClick @hide
74 <span id='Ext-menu.Separator-cfg-icon'> /**
75 </span> * @cfg {String} icon @hide
78 <span id='Ext-menu.Separator-cfg-iconCls'> /**
79 </span> * @cfg {String} iconCls @hide
82 <span id='Ext-menu.Separator-cfg-menu'> /**
83 </span> * @cfg {Mixed} menu @hide
86 <span id='Ext-menu.Separator-cfg-menuAlign'> /**
87 </span> * @cfg {String} menuAlign @hide
90 <span id='Ext-menu.Separator-cfg-menuExpandDelay'> /**
91 </span> * @cfg {Number} menuExpandDelay @hide
94 <span id='Ext-menu.Separator-cfg-menuHideDelay'> /**
95 </span> * @cfg {Number} menuHideDelay @hide
98 <span id='Ext-menu.Separator-cfg-plain'> /**
99 </span> * @cfg {Boolean} plain @hide
103 <span id='Ext-menu.Separator-cfg-separatorCls'> /**
104 </span> * @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',
111 <span id='Ext-menu.Separator-cfg-text'> /**
112 </span> * @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);
128 });</pre></pre></body></html>