DataTables Options not working.
Tried to change Language (and others) with DataTables.Settings, it doesn't work
:microscope: Minimal Reproduction
StackBlitz/GitHub Link:
Step-by-step Instructions:
:8ball: Expected behavior
Language Datatable Italian
:camera: Screenshots
I've created a service to manage DataTables (i've also tried in component)
ngOnInit in component:
Table Result:
Html:
:globe_with_meridians: Your Environment
NodeJS version: v12.22.5
Angular version: 13.1.0
Angular CLI version: 13.1.0
jQuery version: 3.6.0
DataTables version: 1.11.3
angular-datatables version: 13.0.1
:memo: Additional context
CODE PASSED TO SETTINGS:
public tableOptions: DataTables.Settings = {
pagingType: 'full_numbers',
pageLength: 10,
language: {
emptyTable: "Nessun dato presente nella tabella",
info: "Vista da _START_ a _END_ di _TOTAL_ elementi",
infoEmpty: "Vista da 0 a 0 di 0 elementi",
infoFiltered: "(filtrati da _MAX_ elementi totali)",
infoPostFix: "",
lengthMenu: "Visualizza _MENU_ elementi",
loadingRecords: "Caricamento...",
processing: "",
search: "Cerca:",
zeroRecords: "La ricerca non ha portato alcun risultato.",
paginate: {
first: "Inizio",
previous: "Precedente",
next: "Successivo",
last: "Fine"
},
aria: {
sortAscending: ": attiva per ordinare la colonna in ordine crescente",
sortDescending: ": attiva per ordinare la colonna in ordine decrescente"
}
}
}
:beetle: bug report
DataTables Options not working. Tried to change Language (and others) with DataTables.Settings, it doesn't work
:microscope: Minimal Reproduction
StackBlitz/GitHub Link:
Step-by-step Instructions:
:8ball: Expected behavior
Language Datatable Italian
:camera: Screenshots
I've created a service to manage DataTables (i've also tried in component)
ngOnInit in component:
Table Result:
Html:
:globe_with_meridians: Your Environment
:memo: Additional context
CODE PASSED TO SETTINGS: