Responsive Buttons
Responsive Buttons
cersos
Posts: 40Questions: 10Answers: 1
Is there a way to responsively not display the buttons?
Just to complicate things, this is using bootstrap 4, so:
table.buttons().container().appendTo('#theTable_wrapper .col-md-6:eq(0)');
Thanks,
Steve
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This works, but I was thinking there might be a DataTables way.
jQuery('.dt-buttons').addClass('d-none d-sm-block');
Steve
Hi Steve,
The Buttons extension does have an API, with several methods for disabling and removing buttons - this thread here may also be useful as there's examples of them in motion. If it's more a case of hiding, what you have is probably a good way to go still,
Cheers,
Colin