/javascripts/lib/docs/source/Separator.html
HTML | 52 lines | 50 code | 2 blank | 0 comment | 0 complexity | ffe62c82eecaa810e9a37387d2fa5904 MD5 | raw file
Possible License(s): GPL-3.0
1<html> 2<head> 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> 7</head> 8<body onload="prettyPrint();"> 9 <pre class="prettyprint lang-js">/*! 10 * Ext JS Library 3.2.1 11 * Copyright(c) 2006-2010 Ext JS, Inc. 12 * licensing@extjs.com 13 * http://www.extjs.com/license 14 */ 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. 20 * @constructor 21 * @param {Object} config Configuration options 22 * @xtype menuseparator 23 */ 24Ext.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") 27 */ 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) 31 */ 32 hideOnClick : false, 33 34 <div id="cfg-Ext.menu.Separator-activeClass"></div>/** 35 * @cfg {String} activeClass 36 * @hide 37 */ 38 activeClass: '', 39 40 // private 41 onRender : function(li){ 42 var s = document.createElement("span"); 43 s.className = this.itemCls; 44 s.innerHTML = " "; 45 this.el = s; 46 li.addClass("x-menu-sep-li"); 47 Ext.menu.Separator.superclass.onRender.apply(this, arguments); 48 } 49}); 50Ext.reg('menuseparator', Ext.menu.Separator);</pre> 51</body> 52</html>