sistemato ordinamento date (dataTable) nei js

This commit is contained in:
2023-06-20 15:55:20 +02:00
parent 3dc54235c5
commit 54b2dda9ea
7 changed files with 61 additions and 54 deletions

13
public/js/app/auto.js vendored
View File

@@ -1,12 +1,13 @@
$(document).ready(function() {
$('#automobili').DataTable({
responsive: true,
fields: [
{
label:"Data",
type: "datetime"
}
]
columnDefs: [
{
target: 0,
render: DataTable.render.date(),
}
],
"order": [[0, "desc"]]
});
});