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