This simple, In the html code:
1º my new button called "ADD"
2º Add this code new button "add" or other:
If anyone knows how to best implement it, to me it works perfect ..
1º my new button called "ADD"
$("#" + menu).dataTable({ "iDisplayLength": 25, "bJQueryUI": true, "sPaginationType": "full_numbers", "sDom": 'l<"clear"><"H"Tfr>t<"F"ip>', "oTableTools": { "aButtons": ["xls", "pdf", "add"] },
2º Add this code new button "add" or other:
TableTools.BUTTONS = { "add": $.extend( {}, TableTools.buttonBase, { "sButtonClass": "DTTT_button_csv", "sButtonText": "ADD", "sFieldBoundary": '"', "sFieldSeperator": ",", "fnClick": function( nButton, oConfig, flash ) { //TODO } } ), "csv": $.extend( {}, TableTools.buttonBase, {
If anyone knows how to best implement it, to me it works perfect ..