All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.plugins.grid.subgrid.min.js Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
'use strict';(function(c){"function"===typeof define&&define.amd?define(["jquery","./grid.base"],c):"object"===typeof module&&module.exports?module.exports=function(h,t){h||(h=window);void 0===t&&(t="undefined"!==typeof window?require("jquery"):require("jquery")(h));require("./grid.base");c(t);return t}:c(jQuery)})(function(c){var h=c.jgrid,t=h.jqID,q=c.fn.jqGrid,C=function(){var d=c.makeArray(arguments);d[0]="subGrid"+d[0].charAt(0).toUpperCase()+d[0].substring(1);d.unshift("");d.unshift("");d.unshift(this.p);
return h.feedback.apply(this,d)},u=function(d,h){return this.each(function(){if(this.grid&&null!=d&&!0===this.p.subGrid){var b=c(this).jqGrid("getInd",d,!0);c(b).find("\x3etd."+h).trigger("click")}})};h.extend({setSubGrid:function(){return this.each(function(){var d=this.p,p=c(this),b=d.subGridModel[0],a=function(a){return p.jqGrid("getIconRes",a)};d.subGridOptions=c.extend({commonIconClass:a("subgrid.common"),plusicon:a("subgrid.plus"),minusicon:a("subgrid.minus"),openicon:"rtl"===d.direction?a("subgrid.openRtl"):
a("subgrid.openLtr"),expandOnLoad:!1,delayOnLoad:50,selectOnExpand:!1,selectOnCollapse:!1,reloadOnExpand:!0},d.subGridOptions||{});d.colNames.unshift("");d.colModel.unshift({name:"subgrid",width:h.cell_width?d.subGridWidth+d.cellLayout:d.subGridWidth,labelClasses:"jqgh_subgrid",sortable:!1,resizable:!1,hidedlg:!0,search:!1,fixed:!0,frozen:!0});if(b)for(b.align=c.extend([],b.align||[]),d=0;d




© 2015 - 2025 Weber Informatics LLC | Privacy Policy