3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
\r
4 <title>The source code</title>
\r
5 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
6 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
8 <body onload="prettyPrint();">
\r
9 <pre class="prettyprint lang-js"><div id="cls-Ext.menu.Separator"></div>/**
10 * @class Ext.menu.Separator
11 * @extends Ext.menu.BaseItem
12 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
13 * add one of these by using "-" in you call to add() or in your items config rather than creating one directly.
15 * @param {Object} config Configuration options
16 * @xtype menuseparator
18 Ext.menu.Separator = Ext.extend(Ext.menu.BaseItem, {
19 <div id="cfg-Ext.menu.Separator-itemCls"></div>/**
20 * @cfg {String} itemCls The default CSS class to use for separators (defaults to "x-menu-sep")
22 itemCls : "x-menu-sep",
23 <div id="cfg-Ext.menu.Separator-hideOnClick"></div>/**
24 * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false)
28 <div id="cfg-Ext.menu.Separator-activeClass"></div>/**
29 * @cfg {String} activeClass
35 onRender : function(li){
36 var s = document.createElement("span");
37 s.className = this.itemCls;
38 s.innerHTML = " ";
40 li.addClass("x-menu-sep-li");
41 Ext.menu.Separator.superclass.onRender.apply(this, arguments);
44 Ext.reg('menuseparator', Ext.menu.Separator);</pre>
\r