Yes, it can be very annoying. .dt-buttonthe same without using bootstrap, where it is always added .dt-buttoneven if you declare className. There is a callback you can use to change, for example, classes: init
$('#example').DataTable( {
dom: 'Bfrtip',
buttons: [{
extend: "excel",
className: "btn-sm btn-success",
titleAttr: 'Export in Excel',
text: 'Excel',
init: function(api, node, config) {
$(node).removeClass('btn-default')
}
}]
});
โ https://jsfiddle.net/m6hysypd/
: , - "DavidDomains" .
buttons: {
dom: {
button: {
className: ''
}
},
buttons: [{
}]
}