Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82131

How add new button?

$
0
0
This simple, In the html code:
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 ..

Viewing all articles
Browse latest Browse all 82131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>