Buttons: rendered html different according to the environment

Buttons: rendered html different according to the environment

Philippe BRZOZOWSKIPhilippe BRZOZOWSKI Posts: 2Questions: 2Answers: 0

Hello,

I'm trying to customize the buttons behaviour in my tables.
So far, I try the following markup:

        DT_TypesHoraires = $("#DT_TypesHoraires").DataTable({
            dom: 'Bfrtip',
            buttons: [
                'copyHtml5',
                {
                    text: 'TSV',
                    extend: 'csvHtml5',
                    fieldSeparator: ';',
                    extension: '.csv',
                    bom: true,
                    attr: {
                        id: 'btnExportTypesHoraires'
                    }
                }
            ],

In my dev environment I get the following html:

<button class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="DT_TypesHoraires" type="button" id="btnExportTypesHoraires"><span>TSV</span></button>

But in my production environment I get the following:

<a class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="DT_TypesHoraires" href="#"><span>TSV</span></a>

This does not suit me. How can I get the same html markup in production than in development?

Thanks.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.