4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/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'>/**
19 </span> * 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.
23 * Ext.create('Ext.menu.Menu', {
26 * floating: false, // usually you want this set to True (default)
27 * renderTo: Ext.getBody(), // usually rendered by it's containing component
32 * xtype: 'menuseparator'
34 * text: 'seperator above',
36 * text: 'regular item',
40 Ext.define('Ext.menu.Separator', {
41 extend: 'Ext.menu.Item',
42 alias: 'widget.menuseparator',
44 <span id='Ext-menu-Separator-cfg-activeCls'> /**
45 </span> * @cfg {String} activeCls @hide
48 <span id='Ext-menu-Separator-cfg-canActivate'> /**
49 </span> * @cfg {Boolean} canActivate @hide
53 <span id='Ext-menu-Separator-cfg-clickHideDelay'> /**
54 </span> * @cfg {Boolean} clickHideDelay @hide
57 <span id='Ext-menu-Separator-cfg-destroyMenu'> /**
58 </span> * @cfg {Boolean} destroyMenu @hide
61 <span id='Ext-menu-Separator-cfg-disabledCls'> /**
62 </span> * @cfg {Boolean} disabledCls @hide
67 <span id='Ext-menu-Separator-cfg-href'> /**
68 </span> * @cfg {String} href @hide
71 <span id='Ext-menu-Separator-cfg-hrefTarget'> /**
72 </span> * @cfg {String} hrefTarget @hide
75 <span id='Ext-menu-Separator-cfg-hideOnClick'> /**
76 </span> * @cfg {Boolean} hideOnClick @hide
80 <span id='Ext-menu-Separator-cfg-icon'> /**
81 </span> * @cfg {String} icon @hide
84 <span id='Ext-menu-Separator-cfg-iconCls'> /**
85 </span> * @cfg {String} iconCls @hide
88 <span id='Ext-menu-Separator-cfg-menu'> /**
89 </span> * @cfg {Object} menu @hide
92 <span id='Ext-menu-Separator-cfg-menuAlign'> /**
93 </span> * @cfg {String} menuAlign @hide
96 <span id='Ext-menu-Separator-cfg-menuExpandDelay'> /**
97 </span> * @cfg {Number} menuExpandDelay @hide
100 <span id='Ext-menu-Separator-cfg-menuHideDelay'> /**
101 </span> * @cfg {Number} menuHideDelay @hide
104 <span id='Ext-menu-Separator-cfg-plain'> /**
105 </span> * @cfg {Boolean} plain @hide
109 <span id='Ext-menu-Separator-cfg-separatorCls'> /**
110 </span> * @cfg {String} separatorCls
111 * The CSS class used by the separator item to show the incised line.
112 * Defaults to `Ext.baseCSSPrefix + 'menu-item-separator'`.
114 separatorCls: Ext.baseCSSPrefix + 'menu-item-separator',
116 <span id='Ext-menu-Separator-cfg-text'> /**
117 </span> * @cfg {String} text @hide
121 onRender: function(ct, pos) {
123 sepCls = me.separatorCls;
125 me.cls += ' ' + sepCls;
127 me.callParent(arguments);