predefine buttons and actions

predefine buttons and actions

vlademir12vlademir12 Posts: 8Questions: 0Answers: 0

hi
i made a new buttons and i want it to export as csv as its action please see my code bellow.
Thanks in advance!

$(document).ready( function () {
    $('#example').dataTable( {
        "sDom": 'T<"clear">lfrtip',
        "oTableTools": {
            "aButtons": [
                {
                    "sExtends":    "csv",

                    "sButtonText": "Export to CSV"
                }
            ]
        }
    } );
} );

Replies

This discussion has been closed.