Задача: задать местоположение кнопок экспорта, назначить им собственный стиль
Решение:
|
var buttons = new $.fn.dataTable.Buttons(table, { buttons: [ { text:"Excel",extend: 'excel', className: 'excel_export_style', init: function(api, node, config) { $(node).removeClass('btn btn-secondary') } }, { text:"Print",extend: 'print', className: 'print_export_style', init: function(api, node, config) { $(node).removeClass('btn btn-secondary') } } ] }).container().appendTo($('#export_buttons')); |