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.
Plugins/features/scrollToTop/dataTables.scrollToTop.min.mjs

2 lines
413 B
JavaScript

/*! © SpryMedia Ltd - datatables.net/license */
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$(document).on("preInit.dt",function(t,e){var o;"dt"===t.namespace&&(e.oInit.scrollToTop||DataTable.defaults.scrollToTop)&&(o=new DataTable.Api(e)).on("page",function(){setTimeout(function(){$(document).scrollTop($(o.table().container()).offset().top)},10)})});export default DataTable;