2024年4月7日发(作者:)

//

// A wrapper for Matt Murphy's Super Tables /post/super_tables/

//

// Contributors:

//

////// TO CALL:

// $("...").toSuperTable(options)

//

////// OPTIONS: (order does not matter )

// cssSkin : string ( eg. "sDefault", "sSky", "sOrange", "sDark" )

// headerRows : integer ( default is 1 )

// fixedCols : integer ( default is 0 )

// colWidths : integer array ( use -1 for auto sizing )

// onStart : function ( any leNameHere variables you create here can be used later ( eg. onFinish function ) )

// onFinish : function ( all leNameHere variables created in this script can be used in this function )

// margin, padding, width, height, : Styles for "fakeContainer"

//

////// Example:

// $("#GridView1").toSuperTable(

// { width: "640px", height: "480px", fixedCols: 2,

// onFinish: function() { alert('Done!'); } })

//

(function($) {

$.(

{

toSuperTable: function(options) {

var setting = $.extend(

{

width: "640px", height: "320px",

margin: "10px", padding: "0px",

overflow: "hidden", colWidths: undefined,

fixedCols: 0, headerRows: 1,

onStart: function() { },

onFinish: function() { },

cssSkin: "sSky"

}, options);

return (function() {

var q = $(this);

var id = ("id");

Attr("style").wrap("

");

var nonCssProps = ["fixedCols", "headerRows", "onStart", "onFinish", "cssSkin", "colWidths"];

var container = $("#" + id + "_box");

for (var p in setting) {

if ($.inArray(p, nonCssProps) == -1) {

(p, setting[p]);

delete setting[p];

}

}

var mySt = new superTable(id, setting);

});

}

});

})(jQuery);

// Super Tables v0.30 - MIT Style License

// Copyright (c) 2008 Matt Murphy ---

//

// Contributors:

// Joe Gallo

////// TO CALL:

// new superTable([string] tableId, [object] options);

//

////// OPTIONS: (order does not matter )

// cssSkin : string ( eg. "sDefault", "sSky", "sOrange", "sDark" )

// headerRows : integer ( default is 1 )

// fixedCols : integer ( default is 0 )

// colWidths : integer array ( use -1 for auto sizing )

// onStart : function ( any leNameHere variables you create here can be used later ( eg. onFinish function ) )

// onFinish : function ( all leNameHere variables created in this script can be used in this function )

//

////// EXAMPLES:

// var myST = new superTable("myTableId");

//

// var myST = new superTable("myTableId", {

// cssSkin : "sDefault",

// headerRows : 1,