"bSelectedOnly" not working on latest version Tabletools/2.2.3

"bSelectedOnly" not working on latest version Tabletools/2.2.3

jimboyjimboy Posts: 20Questions: 9Answers: 0

Hey Allan,

May I know why the bSelectedOnly not working on my code below? The excel export shows all of my hidden columns.
I also added the exclude option through Colvis, how to not show them as well?

    var table = $("tableName").DataTable({
        "sDom": 'Rlfrtip'});

    var colvis = new $.fn.dataTable.ColVis(table, {
        exclude: [0,1,2,3]                
    });

    var tableTools = new $.fn.dataTable.TableTools(table, {
        "aButtons": [
                 "copy",
                 "xls", {
                     "sExtends": "xls",
                     "bSelectedOnly": true
                 }
        ]

      $(tableTools.fnContainer()).insertAfter("div.test");

Thanks,

This discussion has been closed.