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

META-INF.resources.bower_components.datatables.net-colreorder.js.dataTables.colReorder.min.js Maven / Gradle / Ivy

/*! ColReorder 1.5.1
 * ©2010-2018 SpryMedia Ltd - datatables.net/license
 */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery","datatables.net"],function(b){return a(b,window,document)})}else{if(typeof exports==="object"){module.exports=function(b,c){if(!b){b=window}if(!c||!c.fn.dataTable){c=require("datatables.net")(b,c).$}return a(c,b,b.document)}}else{a(jQuery,window,document)}}}(function(d,e,f,b){var c=d.fn.dataTable;function g(m){var l=[];for(var k=0,j=m.length;k=r){this.oApi._fnLog(o,1,"ColReorder 'from' index is out of bounds: "+x);return}if(p<0||p>=r){this.oApi._fnLog(o,1,"ColReorder 'to' index is out of bounds: "+p);return}var s=[];for(y=0,v=r;ythis.s.fixed-1&&n
").addClass("DTCR_pointer").css({position:"absolute",top:o?d("div.dataTables_scroll",this.s.dt.nTableWrapper).offset().top:d(this.s.dt.nTable).offset().top,height:o?d("div.dataTables_scroll",this.s.dt.nTableWrapper).height():d(this.s.dt.nTable).height()}).appendTo("body")},_fnSetColumnIndexes:function(){d.each(this.s.dt.aoColumns,function(j,k){d(k.nTh).attr("data-column-index",j)})},_fnCursorPosition:function(j,k){if(j.type.indexOf("touch")!==-1){return j.originalEvent.touches[0][k]}return j[k]}});i.defaults={aiOrder:null,bEnable:true,bRealtime:true,iFixedColumnsLeft:0,iFixedColumnsRight:0,fnReorderCallback:null};i.version="1.5.1";d.fn.dataTable.ColReorder=i;d.fn.DataTable.ColReorder=i;if(typeof d.fn.dataTable=="function"&&typeof d.fn.dataTableExt.fnVersionCheck=="function"&&d.fn.dataTableExt.fnVersionCheck("1.10.8")){d.fn.dataTableExt.aoFeatures.push({fnInit:function(j){var l=j.oInstance;if(!j._colReorder){var m=j.oInit;var k=m.colReorder||m.oColReorder||{};new i(j,k)}else{l.oApi._fnLog(j,1,"ColReorder attempted to initialise twice. Ignoring second")}return null},cFeature:"R",sFeature:"ColReorder"})}else{alert("Warning: ColReorder requires DataTables 1.10.8 or greater - www.datatables.net/download")}d(f).on("preInit.dt.colReorder",function(m,j){if(m.namespace!=="dt"){return}var n=j.oInit.colReorder;var l=c.defaults.colReorder;if(n||l){var k=d.extend({},n,l);if(n!==false){new i(j,k)}}});d.fn.dataTable.Api.register("colReorder.reset()",function(){return this.iterator("table",function(j){j._colReorder.fnReset()})});d.fn.dataTable.Api.register("colReorder.order()",function(k,j){if(k){return this.iterator("table",function(l){l._colReorder.fnOrder(k,j)})}return this.context.length?this.context[0]._colReorder.fnOrder():null});d.fn.dataTable.Api.register("colReorder.transpose()",function(j,k){return this.context.length&&this.context[0]._colReorder?this.context[0]._colReorder.fnTranspose(j,k):j});d.fn.dataTable.Api.register("colReorder.move()",function(m,l,j,k){if(this.context.length){this.context[0]._colReorder.s.dt.oInstance.fnColReorder(m,l,j,k)}return this});d.fn.dataTable.Api.register("colReorder.enable()",function(j){return this.iterator("table",function(k){if(k._colReorder){k._colReorder.fnEnable(j)}})});d.fn.dataTable.Api.register("colReorder.disable()",function(){return this.iterator("table",function(j){if(j._colReorder){j._colReorder.fnDisable()}})});return i}));



© 2015 - 2025 Weber Informatics LLC | Privacy Policy