Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82293

Buttons with specific class is not displayed

$
0
0

I use datatable with buttons plugings and bootstrap style.

With this code

    var url = '/i18n/' + '[(${#authentication.getPrincipal().getLang()})]' + '.json';
    var productTypesTable = $('#productTypesTable').DataTable({
                            responsive: {
                                details: {
                                    display: $.fn.dataTable.Responsive.display.childRowImmediate,
                                    type: ''
                                }
                            },
                            "language": {
                                "url" :  url
                            },
                            dom: 'Bfrtip',
                            buttons: {
                                dom: {
                                  button: {
                                    tag: 'button',
                                    className: ''
                                  }
                                },
                                buttons: [
                                    {
                                        extend: 'copy',
                                        className: 'btn btn-primary',
                                        text: '[(#{productType.new})]', //should come from thymeleaf
                                        action: function ( e, dt, node, config ) {
                                             $("#productTypesFragment").load("/template/new/producttypes");
                                        }
                                    }
                                ]
                            },
                            "bLengthChange": false, //hide 'show entries dropdown
                            'pagingType': 'simple_numbers'
                        });

Buttons is not displayed


Viewing all articles
Browse latest Browse all 82293

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>