Change onclick event to onhover on export option in datatables

天大地大妈咪最大 提交于 2019-12-11 10:15:17

问题


I'm working with jQuery DataTables and TableTools extension in which my export option is working fine but I had requirement of instead of onclick I should show dropdown menu on hover of export button.

I tried all these Bootstrap Dropdown with Hover but nothing works.


回答1:


I believe this is not possible because most of the TableTools functionality is implemented using Adobe Flash. Due to Flash security restrictions there is no way to programmatically trigger export to PDF or CSV other than let user click on the button.

See this answer for more details.



来源:https://stackoverflow.com/questions/31780815/change-onclick-event-to-onhover-on-export-option-in-datatables

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