You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
777 B
JavaScript
2 lines
777 B
JavaScript
/*! © SpryMedia Ltd - datatables.net/license */
|
|
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;var RowFill=function(t){var a=t.table();this.s={dt:t,body:$(a.body())},this._attach()};RowFill.prototype={_attach:function(){var n=this.s.dt,r=this.s.body;n.on("draw",function(){var t=n.columns(":visible").count(),a=n.rows({page:"current"}).count(),l="even",o="odd";(a=0===a?1:a)%2==0&&(l="odd",o="even");for(var e=0;e<n.page.len()-a;e++)r.append($('<tr><td colspan="'+t+'"> </td></tr>').addClass(e%2==0?l:o).addClass("dt-rowFill--filler"))})}},DataTable.RowFill=RowFill,$(document).on("preInit.dt",function(t,a){"dt"===t.namespace&&(t=new DataTable.Api(a),a.oInit.rowFill||DataTable.defaults.rowFill)&&new RowFill(t)});export default DataTable; |