Commit e6d7b04a by Billy Larru

agregando language al datatable proyeccion asistencias policias

parent 76e42fb4
...@@ -27,6 +27,28 @@ function mostrarVistaPrevia() { ...@@ -27,6 +27,28 @@ function mostrarVistaPrevia() {
console.log(data); console.log(data);
$("#tblAsistenciaPolicias").DataTable().destroy(); $("#tblAsistenciaPolicias").DataTable().destroy();
$("#tblAsistenciaPolicias").DataTable({ $("#tblAsistenciaPolicias").DataTable({
"language": {
"lengthMenu": "Mostrar: _MENU_",
"zeroRecords": "    No se encontraron resultados",
"info": "    Mostrando del _START_ al _END_ de un total de _TOTAL_ registros",
"infoEmpty": "    Mostrando 0 de 0 registros",
"search": "Filtrar:",
"loadingRecords": "Cargando...",
"processing": '<span style="width:100%;"><img src="http://www.snacklocal.com/images/ajaxload.gif"></span>',
"paginate": {
"first": "First",
"last": "Last",
"next": "Siguiente",
"previous": "Anterior"
}
},
"bSort": false,
"bFilter": false,
"aaSorting": [],
"ordering": false,
"bLengthChange": false,
"bInfo": true,
"paging": true,
iDisplayLength: 50, iDisplayLength: 50,
bStateSave: false, bStateSave: false,
autoWidth: false, autoWidth: false,
...@@ -48,12 +70,12 @@ function mostrarVistaPrevia() { ...@@ -48,12 +70,12 @@ function mostrarVistaPrevia() {
{ {
"data": "tipo_horario", "data": "tipo_horario",
"className": "text-center", "className": "text-center",
render: (data)=>{ render: (data) => {
let label = ''; let label = '';
switch(data){ switch (data) {
case "REGULAR": case "REGULAR":
label= `label bg-slate border-slate-700`; label = `label bg-slate border-slate-700`;
break; break;
} }
...@@ -112,7 +134,7 @@ $(function () { ...@@ -112,7 +134,7 @@ $(function () {
}); });
$("#dpFechaFin").datepicker('setDate', 'now'); $("#dpFechaFin").datepicker('setDate', 'now');
defaultConfigDataTable(); // defaultConfigDataTable();
initializeData(); initializeData();
$("#btnVistaPrevia").click(mostrarVistaPrevia); $("#btnVistaPrevia").click(mostrarVistaPrevia);
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment