predefine buttons and actions
predefine buttons and actions

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"
}
]
}
} );
} );
This discussion has been closed.
Replies
i got it working thanks!!
close