jquery datableカスタムButtonおよびボタンイベント

1136 ワード

参考URL:http://stackoverflow.com/questions/18134913/jquery-datatabletabletool-custom-buttons-calling-events
主なコードは以下の通りです。
注意:s Extens
"oTableTools": {
                        "sRowSelect": "multi",
                        "aButtons": [  
                               {"sExtends": "new_record","sButtonText": "Add"},
                               {"sExtends": "select","sButtonText": "Delete Recods",
                                 "fnClick": function (nButton, oConfig, oFlash) {
                                   //delete stuff comes here 
                                   alert('test');
                                           }

                                        }
                                    ]
                        }