I need an event fired after successful export on DataTables 1.10

Deadly 提交于 2019-12-02 16:04:17

问题


I'm using DataTables 1.10.4 and I would like to make an action, like a javascript function, after a successful Excel export.

Is it possible, since the button is using Adobe Flash?


回答1:


See the documentation. Below an example with Excel-button :

...
"oTableTools": {
     "aButtons": [
         {
             "sExtends": "xls",
             "fnComplete": function ( nButton, oConfig, oFlash, sFlash ) {
                 alert( 'Excel-export complete' );
             }
         }
     ]
 }
...


来源:https://stackoverflow.com/questions/26979826/i-need-an-event-fired-after-successful-export-on-datatables-1-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!