flymis/WebRoot/dojojs/src/widget/SortableTable.js
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.SortableTable");
dojo.deprecated("SortableTable will be removed in favor of FilteringTable.", "0.5");
dojo.require("dojo.lang.common");
dojo.require("dojo.date.format");
dojo.require("dojo.html.*");
dojo.require("dojo.html.selection");
dojo.require("dojo.html.util");
dojo.require("dojo.html.style");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.widget.defineWidget(
"dojo.widget.SortableTable",
dojo.widget.HtmlWidget,
function(){
this.data=[];
this.selected=[]; // always an array to handle multiple selections.
this.columns=[];
},
{
// custom properties
enableMultipleSelect: false,
maximumNumberOfSelections: 0, // 0 for unlimited, is the default.
enableAlternateRows: false,
minRows: 0, // 0 means ignore.
defaultDateFormat: "%D",
sortIndex: 0, // index of the column sorted on, first is the default.
sortDirection: 0, // 0==asc, 1==desc
valueField: "Id", // if a JSON structure is parsed and there is a field of this name,
// a value attribute will be added to the row (tr value="{Id}")
headClass: "",
tbodyClass: "",
headerClass: "",
headerSortUpClass: "selected",
headerSortDownClass: "selected",
rowClass: "",
rowAlternateClass: "alt",
rowSelectedClass: "selected",
columnSelected: "sorted-column",
isContainer: false,
templatePath:null,
templateCssPath:null,
getTypeFromString:function(/* string */ s){
// summary
后面还有 555 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。