I want to enable the excel icon on data table top right and click the icon get the action class to export data.I have tried in data table, but nothing happening.please help me to enable the excel button and to get the action.
var oTable = $("#products1").dataTable({
"aaData": newarray,
"bProcessing": true,
"bDeferRender": true,
"bFilter": false,
"bRetrieve": true,
"bJQueryUI": true,
"bPaginate": true,
"sPaginationType": "two_button",
"sDom": '<"H"Tfr>t<"F"ip>',
"bSort": true,
"aaSorting": [[2, 'asc']],
"oTableTools": {
"sSwfPath": "../images/excel_export.gif",
"aButtons": ["Excel"]
},
Aucun commentaire:
Enregistrer un commentaire