source: trunk/web/addons/job_monarch/lib/extjs/source/widgets/menu/Separator.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 1.2 KB
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9/**
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.
14 * @constructor
15 * @param {Object} config Configuration options
16 */
17Ext.menu.Separator = function(config){
18    Ext.menu.Separator.superclass.constructor.call(this, config);
19};
20
21Ext.extend(Ext.menu.Separator, Ext.menu.BaseItem, {
22    /**
23     * @cfg {String} itemCls The default CSS class to use for separators (defaults to "x-menu-sep")
24     */
25    itemCls : "x-menu-sep",
26    /**
27     * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false)
28     */
29    hideOnClick : false,
30
31    // private
32    onRender : function(li){
33        var s = document.createElement("span");
34        s.className = this.itemCls;
35        s.innerHTML = " ";
36        this.el = s;
37        li.addClass("x-menu-sep-li");
38        Ext.menu.Separator.superclass.onRender.apply(this, arguments);
39    }
40});
Note: See TracBrowser for help on using the repository browser.