UNPKG

datatables.net-buttons-se

Version:

Buttons for DataTables with styling for [SemanticUI](https://semantic-ui.com/)

4 lines 1.76 kB
/*! Buttons Fomantic styling 4.0.1 for DataTables * Copyright (c) SpryMedia Ltd - datatables.net/license */ (n=>{var o;"function"==typeof define&&define.amd?define(["datatables.net-se","datatables.net-buttons"],function(t){return n(window,document,t)}):"object"==typeof exports?(o=function(t){t.DataTable||require("datatables.net-se")(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 a=o.Dom;return o.util.object.assignDeep(o.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"}}}}),a.s(n).on("buttons-popover.dt",function(){var n=!1;a.s(".dtsp-panesContainer").each(function(t){a.s(t).is("button")||(n=!0)}),n&&a.s(".dtsp-panesContainer").classRemove("vertical buttons")}),o});