jquery dataTable 自定义 Button及按钮事件

参考网址:http://stackoverflow.com/questions/18134913/jquery-datatabletabletool-custom-buttons-calling-events

主要代码如下:

注意:sExtends

"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');
                                           }

                                        }
                                    ]
                        }

 

posted on 2015-06-12 16:42  freeliver54  阅读(14698)  评论(0编辑  收藏  举报

导航