Hl.WebMain/LigerUI/lib/ligerUI/js/plugins/ligerGrid.js
(开头部分) 185KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jQuery ligerUI 1.2.2
*
* http://ligerui.com
*
* Author daomi 2013 [ gd_star@163.com ]
*
*/
(function ($)
{
var l = $.ligerui;
$.fn.ligerGrid = function (options)
{
return $.ligerui.run.call(this, "ligerGrid", arguments);
};
$.fn.ligerGetGridManager = function ()
{
return $.ligerui.run.call(this, "ligerGetGridManager", arguments);
};
$.ligerDefaults.Grid = {
title: null,
width: 'auto', //宽度值
height: 'auto', //宽度值
columnWidth: null, //默认列宽度
resizable: true, //table是否可伸缩
url: false, //ajax url
data: null, //初始化数据
usePager: true, //是否分页
page: 1, //默认当前页
pageSize: 10, //每页默认的结果数
pageSizeOptions: [10, 20, 30, 40, 50], //可选择设定的每页结果数
parms: [], //提交到服务器的参数
columns: [], //数据源
minColToggle: 1, //最小显示的列
dataType: 'server', //数据源:本地(local)或(server),本地是将读取p.data。不需要配置,取决于设置了data或是url
dataAction: 'server', //提交数据的方式:本地(local)或(server),选择本地方式时将在客服端分页、排序。
showTableToggleBtn: false, //是否显示'显示隐藏Grid'按钮
switchPageSizeApplyComboBox: false, //切换每页记录数是否应用ligerComboBox
allowAdjustColWidth: true, //是否允许调整列宽
checkbox: false, //是否显示复选框
allowHideColumn: true, //是否显示'切换列层'按钮
enabledEdit: false, //是否允许编辑
isScroll: true, //是否滚动
dateFormat: 'yyyy-MM-dd', //默认时间显示格式
inWindow: true, //是否以窗口的高度为准 height设置为百分比时可用
statusName: '__status', //状态名
method: 'post', //提交方式
async: true,
fixedCellHeight: true, //是否固定单元格的高度
heightDiff: 0, //高度补差,当设置height:100%时,可能会有高度的误差,可以通过这个属性调整
cssClass: null, //类名
root: 'Rows', //数据源字段名
record: 'Total', //数据源记录数字段名
pageParmName: 'page', //页索引参数名,(提交给服务器)
pagesizeParmName: 'pagesize', //页记录数参数名,(提交给服务器)
sortnameParmName: 'sortname', //页排序列名(提交给服务器)
后面还有 4366 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
