问题
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