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

📄 searchform.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	SearchForm//// A SearchForm is a DynamicForm specialized for a user to enter search criteria.// <P>// All DynamicForm properties and methods work on SearchForm.  SearchForm extends and// specializes DynamicForm for searching, for example, SearchForm sets// <code>hiliteRequiredFields</code> false by default because fields are typically required in// a search.// // @see class:DynamicForm//// @treeLocation Client Reference/Forms// @visibility external//<// create the form as a descendant of the DynamicFormisc.ClassFactory.defineClass("SearchForm", "DynamicForm");// add constantsisc.SearchForm.addProperties({    // hiliteRequiredFields - false    // Don't hilight required fields in bold by default.    hiliteRequiredFields:false,    // if there are operation-specific schema on a DataSource we're binding to, use the fetch    // schema    operationType:"fetch"});    isc.SearchForm.addMethods({    // When creating DateItems, show the text field by default (unless the definition block    // explicitly says otherwise)        _$DateItem:"DateItem",    createItem : function (item, type, a,b,c) {            // convert from a simple object into a FormItem        var className = isc.FormItemFactory.getItemClassName(item, type, this),            classObject = isc.FormItemFactory.getItemClass(className);                if (classObject == isc.DateItem && item && (item.useTextField == null))             item.useTextField = true;                // Default to allowing empty values, unless explicitly set on the item        if (item.allowEmptyValue == null) item.allowEmptyValue = true;                return this.invokeSuper(isc.SearchForm, "createItem", item, type, a,b,c);    },        submitValues : function (values, form) {        if (this.search != null) {            return this.search(this.getValuesAsCriteria(), this);        }    }})isc.SearchForm.registerStringMethods ({	//>	@method SearchForm.search()    // Triggered when a SubmitItem is included in the form is submitted and gets pressed.    //     // @param	criteria  (Criteria)      the search criteria from the form    // @param	form      (SearchForm)    the form being submitted    // @group submitting    // @see method:dynamicForm.submit()    // @see method:dynamicForm.submitValues()    // @visibility external	//<    search : "criteria,form"});

⌨️ 快捷键说明

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