Show CSV button of Button Extension with JQuery UI

Show CSV button of Button Extension with JQuery UI

ZayonSmileZayonSmile Posts: 1Questions: 1Answers: 0

HI,

I'd like to display only the csvHtml5 button in my table.

As I use Jquery UI, i can't modify the dom property or my design breaks.

Using this method :

    var table = $('#user_stats_table').dataTable({
        buttons: true,
        data : {
             /// my data
        }
    });
    // Display the buttons
    table.buttons('csvHtml5', null).container().insertBefore('#user_stats_table_wrapper');

I get a "uncaught exception: Unknown button type: print", but i don't care about print button
And like this :

    var table = $('#user_stats_table').dataTable({
        buttons: ['csvHtml5'],
        data : {
             /// my data
        }
    });

Nothing shows up because there isn't 'B' in the dom property when user JqueryUI

How can i do ?

Thanks

This discussion has been closed.