Javascript 嵌套jQuery UI可排序
我有一些嵌套的排序表,但当我尝试移动它们时,会出现问题 有时它会跳来跳去,有时它会试图把它放在父对象上方而不是盒子内部 无论如何,要使其一致并正确工作 另外,当我将容差模式设置为指针时,就不可能将其放入子排序表中Javascript 嵌套jQuery UI可排序,javascript,jquery,jquery-ui,nested,jquery-ui-sortable,Javascript,Jquery,Jquery Ui,Nested,Jquery Ui Sortable,我有一些嵌套的排序表,但当我尝试移动它们时,会出现问题 有时它会跳来跳去,有时它会试图把它放在父对象上方而不是盒子内部 无论如何,要使其一致并正确工作 另外,当我将容差模式设置为指针时,就不可能将其放入子排序表中 不确定这是否有帮助。但这是一个很棒的nestable Behavior插件@antony似乎只适用于列表。 <div class="wrapper"> <div class="row"> <div class="box">&l
不确定这是否有帮助。但这是一个很棒的nestable Behavior插件@antony似乎只适用于列表。
<div class="wrapper">
<div class="row">
<div class="box"></div>
</div>
<div class="row">
<div class="box"></div>
</div>
</div>
$('.wrapper, .box').sortable({
connectWith: '.wrapper, .box',
//tolerance: 'pointer',
placeholder: 'placeholder ui-state-highlight ui-corner-all',
forcePlaceholderSize: true,
cursorAt: {
left: -10
},
start: function() {
$('.placeholder').append('<span>Move here...</span>');
}.bind(this)
});