I would like to ask your help regarding the DataTables plugin.
I did all my setup by following the setup documents on the datatables website, like below:
$("#DataTableNuse").DataTable(
{
ordering: true,
bLengthChange: false,
iDisplayLength: 10,
bFilter: false,
pagingType: "full_numbers",
bInfo: false,
dom: "Bfrtip",
buttons:
[
{ extend: 'pdf', text: 'Exportar PDF', title: 'Nuse' },
{ extend: 'excel', text: 'Exportar Excel', title: 'Nuse' }
],
language:
{
emptyTable: "<li class='text-danger' align='center'>NUSE não encontrada</li>",
paginate:
{
previous: "<",
next: ">",
first: "|<",
last: ">|"
}
}
});
Also tried the "full" options, not the "full_numbers".
Page layout
Everything works fine, but the problem is that I need to change the layout to fit the client’s standards.
I need a new layout as shown below:
New page layout
Where:
">" will be paginated 10 in 10
"→" will be paginated 20 to 20
"|>" last page
Anyone could give me a hand on this.
Thanks in advance.
Yours faithfully,
Thiago