WebPortal_TongZhou/02.UI/script/jquery-easyui-1.2.4/plugins/jquery.propertygrid.js

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * jQuery EasyUI 1.2.4
 * 
 * Licensed under the GPL terms
 * To use it on other terms please contact us
 *
 * Copyright(c) 2009-2011 stworthy [ stworthy@gmail.com ] 
 * 
 */
(function($){
function _1(_2){
var _3=$.data(_2,"propertygrid").options;
$(_2).datagrid($.extend({},_3,{view:(_3.showGroup?_4:undefined),onClickRow:function(_5,_6){
if(_3.editIndex!=_5){
var _7=$(this).datagrid("getColumnOption","value");
_7.editor=_6.editor;
_8(_3.editIndex);
$(this).datagrid("beginEdit",_5);
$(this).datagrid("getEditors",_5)[0].target.focus();
_3.editIndex=_5;
}
_3.onClickRow.call(_2,_5,_6);
}}));
$(_2).datagrid("getPanel").panel("panel").addClass("propertygrid");
$(_2).datagrid("getPanel").find("div.datagrid-body").unbind(".propertygrid").bind("mousedown.propertygrid",function(e){
e.stopPropagation();
});
$(document).unbind(".propertygrid").bind("mousedown.propertygrid",function(){
_8(_3.editIndex);
_3.editIndex=undefined;
});
function _8(_9){
if(_9==undefined){
return;
}
var t=$(_2);
if(t.datagrid("validateRow",_9)){
t.datagrid("endEdit",_9);
}else{
t.datagrid("cancelEdit",_9);
}
};
};
$.fn.propertygrid=function(_a,_b){
if(typeof _a=="string"){
var _c=$.fn.propertygrid.methods[_a];
if(_c){
return _c(this,_b);
}else{
return this.datagrid(_a,_b);
}
}
_a=_a||{};
return this.each(function(){
var _d=$.data(this,"propertygrid");
if(_d){
$.extend(_d.options,_a);
}else{
$.data(this,"propertygrid",{options:$.extend({},$.fn.propertygrid.defaults,$.fn.propertygrid.parseOptions(this),_a)});
}
后面还有 106 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。