+++ /dev/null
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-/**\r
- * @class Ext.menu.TextItem\r
- * @extends Ext.menu.BaseItem\r
- * Adds a static text string to a menu, usually used as either a heading or group separator.\r
- * @constructor\r
- * Creates a new TextItem\r
- * @param {Object/String} config If config is a string, it is used as the text to display, otherwise it\r
- * is applied as a config object (and should contain a <tt>text</tt> property).\r
- */\r
-Ext.menu.TextItem = function(cfg){\r
- if(typeof cfg == 'string'){\r
- cfg = {text: cfg}\r
- }\r
- Ext.menu.TextItem.superclass.constructor.call(this, cfg);\r
-};\r
-\r
-Ext.extend(Ext.menu.TextItem, Ext.menu.BaseItem, {\r
- /**\r
- * @cfg {String} text The text to display for this item (defaults to '')\r
- */\r
- /**\r
- * @cfg {Boolean} hideOnClick True to hide the containing menu after this item is clicked (defaults to false)\r
- */\r
- hideOnClick : false,\r
- /**\r
- * @cfg {String} itemCls The default CSS class to use for text items (defaults to "x-menu-text")\r
- */\r
- itemCls : "x-menu-text",\r
-\r
- // private\r
- onRender : function(){\r
- var s = document.createElement("span");\r
- s.className = this.itemCls;\r
- s.innerHTML = this.text;\r
- this.el = s;\r
- Ext.menu.TextItem.superclass.onRender.apply(this, arguments);\r
- }\r
-});
\ No newline at end of file