Does not exist api to customize sWrapper parameter at datatables?
Hello!
I'm using angularJS datatables with bootstrap plugin, and
DTOptionsBuilder.newOptions()
.withPaginationType("simple_numbers")
.withOption("ordering", false)
.withOption("responsive", true)
.withLanguage({
decimal: ",",
processing: "Processando...",
search: "Filtrar tabela:",
lengthMenu: "Mostrar _MENU_ registros",
info: "Exibindo de _START_ à _END_ de _TOTAL_ registros",
infoEmpty: "Exibindo de 0 à 0 de 0 registros",
infoFiltered: "(filtrado de _MAX_ registros totais)",
infoPostFix: "",
loadingRecords: "Processando...",
zeroRecords: msg,
emptyTable: msg,
paginate: {
first: "Primeiro",
previous: "Anterior",
next: "Próximo",
last: "Último"
},
aria: {
sortAscending: ": Ordem ascendente",
sortDescending: ": Ordem decrescente"
}
})
.withDOM(
"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
"<'row'<'col-sm-12'tr>>" +
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>")
.withBootstrap()
.withBootstrapOptions({
TableTools: {
classes: {
container: 'btn-group',
buttons: {
normal: 'btn btn-danger'
}
}
},
ColVis: {
classes: {
masterButton: 'btn btn-primary'
}
},
pagination: {
classes: {
ul: 'pagination pagination-sm'
}
}
});
The parameters at withBootstrapOptions does not work. And datatables add a form-inline at
What version of bootstrap are you using? Did you include all the CSS and JS files (see the example, valid only for bootstrap 3)?
If it's still not working, I suggest you try the examples provided by datatables.net:
- Bootstrap 3 : https://datatables.net/examples/styling/bootstrap.html
- Bootstrap 4 : https://datatables.net/examples/styling/bootstrap4.html
Having Same issue after upgrading to Bootstrap 4. Is there a clean solution to this? And yes i did include the files.
The "angular-datatables.bootstrap.min.js" settings the class "form-inline" which breaks the table than.
Thank you
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to inactivity. Please feel free to re-open the issue to add new inputs.