datatables.net: вынос кнопок экспорта в любое место
Задача: задать местоположение кнопок экспорта, назначить им собственный стиль
Решение:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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')); |