UNPKG

datatables.net-buttons-zf

Version:

Buttons for DataTables with styling for [Foundation](https://get.foundation/)

4 lines 1.02 kB
/*! Foundation integration for DataTables' Buttons * © SpryMedia Ltd - datatables.net/license */ import jQuery from"jquery";import DataTable from"datatables.net-zf";import Buttons from"datatables.net-buttons";let $=jQuery;$.extend(!0,DataTable.Buttons.defaults,{dom:{container:{tag:"div",className:"dt-buttons button-group"},button:{tag:"a",className:"dt-button button small",active:"secondary active"},collection:{button:{tag:"li",className:"dt-button",active:"dt-button-active-a",liner:{tag:"a"}},container:{tag:"div",className:"dt-button-collection",content:{tag:"ul",className:"dropdown menu is-dropdown-submenu"}}},split:{action:{tag:"button",className:"button small"},dropdown:{tag:"button",className:"button arrow-only"},wrapper:{tag:"div",className:"button-group dt-button-split"}}}}),$(document).on("buttons-popover.dt",function(){var t=!1;$(".dtsp-panesContainer").each(function(){$(this).is("button")||(t=!0)}),t&&$(".dtsp-panesContainer").removeClass("button-group stacked")});export default DataTable;