package.js.dataTables.bootstrap.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datatables.net-bs Show documentation
Show all versions of datatables.net-bs Show documentation
DataTables for jQuery with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)
The newest version!
/*! DataTables Bootstrap 3 integration
* © SpryMedia Ltd - datatables.net/license
*/
!function(n){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||o(t),a(t,e),n(e,0,t.document)}:(a(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(d,t,e){"use strict";var n=d.fn.dataTable;return d.extend(!0,n.defaults,{renderer:"bootstrap"}),d.extend(!0,n.ext.classes,{container:"dt-container form-inline dt-bootstrap",search:{input:"form-control input-sm"},length:{select:"form-control input-sm"},processing:{container:"dt-processing panel panel-default"},layout:{row:"row dt-layout-row",cell:"dt-layout-cell",tableCell:"col-12",start:"dt-layout-start col-sm-6",end:"dt-layout-end col-sm-6",full:"dt-layout-full col-sm-12"}}),n.ext.renderer.pagingButton.bootstrap=function(t,e,n,o,a){var r=["dt-paging-button","page-item"],o=(o&&r.push("active"),a&&r.push("disabled"),d("").addClass(r.join(" ")));return{display:o,clicker:d("",{href:a?null:"#",class:"page-link"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(t,e){return d("
").addClass("pagination").append(e)},n});