datatables.net-buttons-bs4
Version:
Buttons for DataTables with styling for [Bootstrap4](https://getbootstrap.com/docs/4.6/getting-started/introduction/)
4 lines • 1.61 kB
JavaScript
/*! Buttons Bootstrap 4 styling 4.0.1 for DataTables
* Copyright (c) SpryMedia Ltd - datatables.net/license
*/
(n=>{var o;"function"==typeof define&&define.amd?define(["datatables.net-bs4","datatables.net-buttons"],function(t){return n(window,document,t)}):"object"==typeof exports?(o=function(t){t.DataTable||require("datatables.net-bs4")(t),window.DataTable.Buttons||require("datatables.net-buttons")(t)},"undefined"==typeof window?module.exports=function(t){return t=t||window,o(t),n(0,t.document,t.DataTable)}:(o(window),module.exports=n(window,window.document,window.DataTable))):n(window,document,window.DataTable)})(function(t,n,o){var e=o.Dom;return o.util.object.assignDeep(o.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group flex-wrap"},button:{className:"btn btn-secondary",active:"active",dropHtml:"",dropClass:"dropdown-toggle"},collection:{container:{tag:"div",className:"dropdown-menu show dt-button-collection"},closeButton:!1,button:{tag:"a",className:"dt-button dropdown-item",active:"dt-button-active",disabled:"disabled",spacer:{className:"dropdown-divider",tag:"hr"}}},split:{action:{tag:"a",className:"btn btn-secondary dt-button-split-drop-button",closeButton:!1},dropdown:{tag:"button",className:"btn btn-secondary dt-button-split-drop dropdown-toggle-split",closeButton:!1,align:"split-left",splitAlignClass:"dt-button-split-left"},wrapper:{tag:"div",className:"dt-button-split btn-group",closeButton:!1}}},buttonCreated:function(t,n){return t.buttons?e.c("div").classAdd("btn-group").append(n):n}}),o.ext.buttons.collection.rightAlignClassName="dropdown-menu-right",o});