4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
13 * @class Roo.menu.Separator
14 * @extends Roo.menu.BaseItem
15 * Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will
16 * add one of these by using "-" in you call to add() or in your items config rather than creating one directly.
18 * @param {Object} config Configuration options
20 Roo.menu.Separator = function(config){
21 Roo.menu.Separator.superclass.constructor.call(this, config);
24 Roo.extend(Roo.menu.Separator, Roo.menu.BaseItem, {
26 * @cfg {String} itemCls The default CSS class to use for separators (defaults to "x-menu-sep")
28 itemCls : "x-menu-sep",
30 * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false)
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 Roo.menu.Separator.superclass.onRender.apply(this, arguments);