resetitem.js
来自「javascript 很酷的类库」· JavaScript 代码 · 共 43 行
JS
43 行
/*
* 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 ResetItem// Button that resets the form to default values, by calling// <code>DynamicForm.resetValues()</code>// // If you define a click handler on this item, you can return false to cancel the reset.//// @visibility external//<isc.ClassFactory.defineClass("ResetItem", "ButtonItem");isc.ResetItem.addProperties({ // default the title to "Reset" title:"Reset"});isc.ResetItem.addMethods({ // override handleClick to reset the form unless a user defined click-handler suppresses // the reset. handleClick : function () { if (this.Super("handleClick", arguments) == false) return false; this.form.resetValues(); }});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?