I need an event fired after successful export on D

2020-05-07 02:18发布

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条回答
迷人小祖宗
2楼-- · 2020-05-07 02:38

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

...
"oTableTools": {
     "aButtons": [
         {
             "sExtends": "xls",
             "fnComplete": function ( nButton, oConfig, oFlash, sFlash ) {
                 alert( 'Excel-export complete' );
             }
         }
     ]
 }
...
查看更多
登录 后发表回答