Responsive Buttons

Responsive Buttons

cersoscersos 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

Answers

  • cersoscersos Posts: 40Questions: 10Answers: 1

    This works, but I was thinking there might be a DataTables way.

    jQuery('.dt-buttons').addClass('d-none d-sm-block');

    Steve

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    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

This discussion has been closed.