angular-datatables icon indicating copy to clipboard operation
angular-datatables copied to clipboard

Does not exist api to customize sWrapper parameter at datatables?

Open sfohart opened this issue 8 years ago • 4 comments

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 angularjs-datatables-bootstrap

sfohart avatar Sep 18 '18 18:09 sfohart

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

l-lin avatar Oct 06 '18 13:10 l-lin

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

miamilabs avatar Jul 29 '20 15:07 miamilabs

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.

stale[bot] avatar Dec 06 '20 11:12 stale[bot]

This issue has been closed due to inactivity. Please feel free to re-open the issue to add new inputs.

stale[bot] avatar Dec 13 '20 12:12 stale[bot]