UNPKG

datatables.net-buttons-bs

Version:

Buttons for DataTables with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)

4 lines 1.5 kB
/*! Bootstrap integration for DataTables' Buttons * © SpryMedia Ltd - datatables.net/license */ !function(n){var a,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?(a=require("jquery"),o=function(t,e){e.fn.dataTable||require("datatables.net-bs")(t,e),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||a(t),o(t,e),n(e,0,t.document)}:(o(window,a),module.exports=n(a,window,window.document))):n(jQuery,window,document)}(function(t,e,n){"use strict";var a=t.fn.dataTable;return t.extend(!0,a.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group flex-wrap"},button:{className:"btn btn-default",active:"active",dropHtml:'<span class="caret"></span>',dropClass:""},collection:{container:{tag:"div",className:"dt-button-collection",content:{tag:"ul",className:"dropdown-menu"}},closeButton:!1,button:{tag:"li",className:"dt-button",active:"dt-button-active-a",disabled:"disabled",liner:{tag:"a"},spacer:{className:"divider",tag:"li"}}},split:{action:{tag:"a",className:"btn btn-default dt-button-split-drop-button",closeButton:!1},dropdown:{tag:"button",className:"btn btn-default 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}}}}),a});