template.js.plugins.grid.setcolumns.min.js Maven / Gradle / Ivy
'use strict';(function(b){b.jgrid.extend({setColumns:function(a){a=b.extend({top:0,left:0,width:200,height:"auto",dataheight:"auto",modal:!1,drag:!0,beforeShowForm:null,afterShowForm:null,afterSubmitForm:null,closeOnEscape:!0,ShrinkToFit:!1,jqModal:!1,saveicon:[!0,"left","ui-icon-disk"],closeicon:[!0,"left","ui-icon-close"],onClose:null,colnameview:!0,closeAfterSubmit:!0,updateAfterCheck:!1,recreateForm:!1},b.jgrid.col,a||{});return this.each(function(){var d=this;if(d.grid){var h="function"===typeof a.beforeShowForm?
!0:!1,k="function"===typeof a.afterShowForm?!0:!1,l="function"===typeof a.afterSubmitForm?!0:!1,f=d.p.id,c="ColTbl_"+f,g={themodal:"colmod"+f,modalhead:"colhd"+f,modalcontent:"colcnt"+f,scrollelm:c};!0===a.recreateForm&&null!=b("#"+g.themodal).html()&&b("#"+g.themodal).remove();if(null!=b("#"+g.themodal).html())h&&a.beforeShowForm(b("#"+c)),b.jgrid.viewModal("#"+g.themodal,{gbox:"#gbox_"+f,jqm:a.jqModal,jqM:!1,modal:a.modal});else{var e=isNaN(a.dataheight)?a.dataheight:a.dataheight+"px",e="\x3cdiv id\x3d'"+
c+"' class\x3d'formdata' style\x3d'width:100%;overflow:auto;position:relative;height:"+e+";'\x3e\x3ctable class\x3d'ColTable' cellspacing\x3d'1' cellpading\x3d'2' border\x3d'0'\x3e\x3ctbody\x3e";for(i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy