datatables.net-buttons-se
Version:
Buttons for DataTables with styling for [SemanticUI](https://semantic-ui.com/)
4 lines • 1.75 kB
JavaScript
/*! Bootstrap integration for DataTables' Buttons
* © SpryMedia Ltd - datatables.net/license
*/
(o=>{var e,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-se","datatables.net-buttons"],function(t){return o(t,window,document)}):"object"==typeof exports?(e=require("jquery"),a=function(t,n){n.fn.dataTable||require("datatables.net-se")(t,n),n.fn.dataTable.Buttons||require("datatables.net-buttons")(t,n)},"undefined"==typeof window?module.exports=function(t,n){return t=t||window,n=n||e(t),a(t,n),o(n,0,t.document)}:(a(window,e),module.exports=o(e,window,window.document))):o(jQuery,window,document)})(function(n,t,o){var e=n.fn.dataTable;return n.extend(!0,e.Buttons.defaults,{dom:{container:{className:"dt-buttons ui buttons"},button:{tag:"button",active:"active",className:"dt-button ui button",spacerClass:"dt-button ui button",dropHtml:'<i class="dropdown icon"></i>',dropClass:""},collection:{container:{tag:"div",className:"ui dropdown active visible dt-button-collection",content:{className:"resizable scrolling menu"}},closeButton:!1,button:{tag:"a",className:"dt-button item",active:"dt-button-active",spacer:{className:"divider",tag:"div"}},split:{action:{tag:"div",className:""},dropdown:{tag:"span",className:"dt-button-split-drop dropdown icon"},wrapper:{tag:"div",className:"dt-button-split"}}},split:{action:{tag:"button",className:"dt-button-split-drop-button ui button"},dropdown:{tag:"button",className:"ui floating button dt-button-split-drop dropdown icon"},wrapper:{tag:"div",className:"dt-button-split buttons"}}}}),n(o).on("buttons-popover.dt",function(){var t=!1;n(".dtsp-panesContainer").each(function(){n(this).is("button")||(t=!0)}),t&&n(".dtsp-panesContainer").removeClass("vertical buttons")}),e});