jQuery UI Sortable中的已连接嵌套列表 [英] Connected Nested Lists in Jquery UI Sortable
本文介绍了jQuery UI Sortable中的已连接嵌套列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,请看一下这个小提琴: http://jsfiddle.net/HG8k6/
Ey dudes, please take a look at this fiddle: http://jsfiddle.net/HG8k6/.
$(document).ready(function () {
$("ul.containers").sortable({
axis: 'y',
placeholder: "ui-state-highlight",
forcePlaceholderSize: true
});
$("ul.containers").disableSelection();
$("ul.rows").sortable({
axis: 'y',
placeholder: "ui-state-highlight",
forcePlaceholderSize: true
});
$("ul.rows").disableSelection();
});
某种程度上它可以正常工作,我有容器和行,可以完美地移动它们,但是我真正想要实现的是在容器之间移动行,例如,将Row5从Container2移到Container1.在此先感谢您和来自南美南美哥伦比亚的问候!
It's working ok in some way, I have containers and rows, I can move them perfect, but what I really want to achieve is to move rows between containers, for example move the Row5 from Container2 to Container1. Thanks in advance and greetings from Colombia, South America!!
推荐答案
使用connectWith:'.rows'
更新了小提琴
这篇关于jQuery UI Sortable中的已连接嵌套列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文