filmov
tv
Ordering principles in Datatables/LaraGoTables (Datatables + Laravel 2022)
Показать описание
Ordering principles in Datatables
A - One-column ordering
1 – Click on the head of desired column (ascending order by default),
2 - Write this piece of code :
order: [[3, "desc"]],
B - Multi-column ordering
1 – Hold SHIFT button then click on desired column,
2 – write this piece of code :
[[3, "desc"], [2, "asc"]],
3 – write this piece of code :
columnDefs: [
{
targets: [3],
orderData: [3, 2],
},
A - One-column ordering
1 – Click on the head of desired column (ascending order by default),
2 - Write this piece of code :
order: [[3, "desc"]],
B - Multi-column ordering
1 – Hold SHIFT button then click on desired column,
2 – write this piece of code :
[[3, "desc"], [2, "asc"]],
3 – write this piece of code :
columnDefs: [
{
targets: [3],
orderData: [3, 2],
},