0
I use Datatable to create tables. I need to put paging at the top of the table as well. However, I already have export buttons, so I can’t put both.
Does anyone know if it’s possible and how to do?
Follow the code of my table.
this.dtOptions = {
scrollX: true,
lengthChange: false,
dom: "Bfrtip",
pageLength: 50,
buttons: [
{
extend: 'print',
text: '<i class="fa fa-print"></i>',
className: 'btn btn-default',
},
{
extend: 'excel',
text: '<i class="fa fa-file-excel-o"></i>',
className: 'btn btn-default'
},
{
extend: 'csv',
text: 'CSV',
className: 'btn btn-default'
},
{
extend: 'pdf',
text: '<i class="fa fa-file-pdf-o"></i>',
className: 'btn btn-default',
orientation: 'landscape',
pageSize: 'LEGAL',
},
{
extend: 'colvis',
text: 'Colunas',
className: 'btn btn-default',
exclude: [ 0 ]
},
],
};