将onclick事件更改为onecver on export选项在数据表中 [英] Change onclick event to onhover on export option in datatables

查看:108
本文介绍了将onclick事件更改为onecver on export选项在数据表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery DataTables和TableTools扩展,其中我的导出选项工作正常,但我有要求而不是 onclick 我应该显示下拉菜单的悬停导出按钮。



我尝试了所有这些引导下拉菜单我们相信这是不可能的,因为大部分的TableTools功能都是使用的,因为这个功能是使用了Hover,但是没有什么可行的。

Adobe Flash。由于Flash安全限制,除了让用户点击按钮之外,无法以编程方式触发导出为PDF或CSV。



请参阅这个答案了解更多详情。


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.

解决方案

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.

这篇关于将onclick事件更改为onecver on export选项在数据表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆