aButtons is not working as expected in datatable
aButtons is not working as expected in datatable
smalik2043
Posts: 2Questions: 0Answers: 0
I am using datatable and tabletools to exports to CSV, but what I want is to diable xls, copy to clipboard and print buttons. I am using the below functionality as described in the documentation but it is not working. It still shows all buttons.
[code]
$("#table").dataTable({bDestroy: true,"sPaginationType": "full_numbers","sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"csv",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv" ]
}
]
}
});
also tried with this
"oTableTools": {
"aButtons": [
"csv"
]
}
[/code]
but no use
[code]
$("#table").dataTable({bDestroy: true,"sPaginationType": "full_numbers","sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"csv",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv" ]
}
]
}
});
also tried with this
"oTableTools": {
"aButtons": [
"csv"
]
}
[/code]
but no use
This discussion has been closed.
Replies