Commit b7f72228 by Billy Larru

agregando propiedades adicionales al makeDatatable

parent 1c7ec5c0
......@@ -340,6 +340,33 @@ const makeDatatable = (jsonForDatatable = { data: [], columns: [], columnDefs: [
$(`#${nameDatatable}`).DataTable({
data,
columns,
columnDefs
columnDefs,
bSort: false,
bFilter: false,
aaSorting: [],
ordering: false,
bLengthChange: false,
bInfo: true,
paging: true,
iDisplayLength: 20,
bStateSave: false,
autoWidth: false,
responsive: true,
stateSave: true,
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"
}
}
});
}
\ 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