datatables.net-buttons-jqui
Version:
Buttons for DataTables with styling for [jQueryUI](http://jqueryui.com/)
53 lines (46 loc) • 1.08 kB
JavaScript
/*! jQuery UI integration for DataTables' Buttons
* © SpryMedia Ltd - datatables.net/license
*/
import jQuery from 'jquery';
import DataTable from 'datatables.net-jqui';
import Buttons from 'datatables.net-buttons';
// Allow reassignment of the $ variable
let $ = jQuery;
$.extend(true, DataTable.Buttons.defaults, {
dom: {
collection: {
button: {
active: 'dt-button-active'
}
},
container: {
className: 'dt-buttons ui-buttonset'
},
button: {
className: 'dt-button ui-button ui-corner-all',
disabled: 'ui-state-disabled',
active: 'ui-state-active',
liner: {
tag: 'span',
className: ''
},
dropHtml: '<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"/>',
dropClass: ''
},
split: {
action: {
tag: 'button',
className: 'dt-button-split-drop-button ui-button ui-corner-left'
},
dropdown: {
tag: 'button',
className: 'dt-button-split-drop ui-button ui-corner-right'
},
wrapper: {
tag: 'div',
className: 'dt-button-split'
}
}
}
});
export default DataTable;