Buttons and Bootstrap 4

Buttons and Bootstrap 4

jamarchijamarchi Posts: 6Questions: 3Answers: 0

Hi averybody

I would lke to know how can I mover the button in the bottom of the table, I have this code
dom: 'Bfrtip',
buttons: [
{ extend: 'pdf', text: '<i class="fas fa-file-pdf fa-1x" aria-hidden="true"> Exportar a PDF</i>' },
{ extend: 'excel', text: '<i class="fas fa-file-excel" aria-hidden="true"> Exportar a EXCEL</i>' },

    ],

Thank you

Answers

  • kthorngrenkthorngren Posts: 21,147Questions: 26Answers: 4,918

    The dom option allows you to order where the Datatables elements are placed. You would move the B to the location in the string where you want the buttons to show. The docs also have examples of how to use Bootstrap styling with the dom option.

    Kevin

This discussion has been closed.