在两个数据表之间拖放 [英] Drag/drop between two datatables
本文介绍了在两个数据表之间拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的ruby on rails项目中使用数据表.数据正在通过ajax填充.我想在表格之间拖放行.有插件/黑客可以做到吗?
I am using datatables in my ruby on rails project. The data is being populated through ajax. I want to drag/drop rows between tables. Is there any plugin/hack to do it?
推荐答案
您在标签中提到了jquery.所以用吧!
you mentionned jquery yourself in tags. So use it !
http://jqueryui.com/demos/droppable/#shopping-cart
在回调事件上,您可以更新其他表
on the callback event you can update the other table
这篇关于在两个数据表之间拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文