sagacity/script/datatables/Buttons-1.0.3/js/buttons.bootstrap.js

32 lines
571 B
JavaScript
Raw Normal View History

2018-05-07 10:51:08 -04:00
(function($, DataTables){
$.extend( true, DataTables.Buttons.defaults, {
dom: {
container: {
className: 'dt-buttons btn-group'
},
button: {
className: 'btn btn-default'
},
collection: {
tag: 'ul',
className: 'dt-button-collection dropdown-menu',
button: {
tag: 'li',
className: 'dt-button'
},
buttonLiner: {
tag: 'a',
className: ''
}
}
}
} );
DataTables.ext.buttons.collection.text = function ( dt ) {
return dt.i18n('buttons.collection', 'Collection <span class="caret"/>');
};
})(jQuery, jQuery.fn.dataTable);