[英]DragHandle Not working in TableDnD JQuery Plugin
I am using tablednd plugin to drag and drop my table rows everything works fine for me but when I try to use the DragHandle property then neither the rows are dragable nor the hander comes 我正在使用tablednd插件拖放表行,一切对我来说都很好,但是当我尝试使用DragHandle属性时,行既不可拖动,也不会处理
My Script is as 我的剧本是
<script type="text/javascript">
$(document).ready(function() {
$('#sort').tableDnD({
onDrop: function(table, row) {
alert(row.id);
},
dragHandle: ".dragHandle"
});
});
</script>
When I remove the drag handle then it works and when I include it it does not work. 当我删除拖动手柄时,它将起作用,而当包含它时,它将不起作用。
Any Ideas why its not working 任何想法为什么它不起作用
Thanks 谢谢
You might be using an older version (probably Version 0.4). 您可能使用的是旧版本(可能是0.4版)。
I had the same issue after downloading the plug-in from GitHub. 从GitHub下载插件后,我遇到了同样的问题。 Seems like you get served the old version, and not the current 0.7
好像您已获得旧版本,而不是当前版本0.7
By the way: dragHandle: ".dragHandle" is correct! 顺便说一句:dragHandle: “ .dragHandle”是正确的!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.