⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statictextitem.js

📁 javascript 很酷的类库
💻 JS
字号:
/*
 * Isomorphic SmartClient
 * Version 6.5 (2008-04-30)
 * Copyright(c) 1998-2007 Isomorphic Software, Inc. All rights reserved.
 * "SmartClient" is a trademark of Isomorphic Software, Inc.
 *
 * licensing@smartclient.com
 *
 * http://smartclient.com/license
 */
 //>	@class	StaticTextItem//	A FormItem that displays an uneditable value.// @visibility external//<isc.ClassFactory.defineClass("StaticTextItem", "FormItem");isc.StaticTextItem.addProperties({    //>	@attr	staticTextItem.height		(number : null : IRW)	//			don't specify a height so the table cell will expand	//			to show the entire contents.  Note that this can 	//			mess up dynamic height calculations in forms.	//		@group	appearance	//<	height:null,    //>	@attr	staticTextItem.width		(number : null : IRW)	//			If a width is specified, we write out a table to make width consistent,	//			if <code>null</code> is used, we write out a SPAN which is cheaper.	//		@group	appearance	//<	width:null,    //>	@attr	staticTextItem.wrap		(boolean : true : IRW)	// @include FormItem.wrap	//		@group	appearance    // @visibility external	//<	wrap:true,        //>@attr    staticTextItem.clipValue (boolean : false : IRW)    // @include FormItem.clipValue    // @group appearance    // @visibility external    //<    //clipValue:null,        //>	@attr	staticTextItem.textBoxStyle    (FormItemBaseStyle : "staticTextItem" : IRW)	//  Base CSS class for this item	// @group   appearance    // @visibility external	//<	textBoxStyle:"staticTextItem",    //>	@attr	staticTextItem.outputAsHTML (boolean : false : IRW)	// Convert the value of this item to HTML before outputting?	//		@group	appearance	//<	outputAsHTML:false,        // override 'emptyDisplayValue' to write out "&nbsp;" instead of "" for styling    emptyDisplayValue:"&nbsp;"                                   });isc.StaticTextItem.addMethods({	        	//>	@method	staticTextItem.mapValueToDisplay()	(A)	// Map from the internal value for this item to the display value.	//		@group	drawing	//		@param	internalValue		(string)	Internal value for this item.	//		@return	(string)	Displayed value corresponding to internal value.	//<	mapValueToDisplay : function (internalValue, a,b,c,d) {        var value = this.invokeSuper(isc.StaticTextItem, "mapValueToDisplay",                                      internalValue, a,b,c,d);                if (isc.isA.String(value) && (this.outputAsHTML || this.asHTML)) {			value = value.asHTML();		}        return value;	},        // Static text items are used for display only - non editable    isEditable : function () {        return false;    }});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -