Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/400.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 嵌套jQuery UI可排序_Javascript_Jquery_Jquery Ui_Nested_Jquery Ui Sortable - Fatal编程技术网

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)
});