【问题标题】:Sortable Containment between rows and columns of a container容器的行和列之间的可排序包含
【发布时间】:2014-03-22 14:48:30
【问题描述】:

如何将可排序限制为只允许行内的列和容器内的行?

示例:

容器有行和列。行和列都是可排序的。但是如何停止在列中插入行?

Working Link

$(".demo, .demo .column").sortable({
    connectWith: ".column",
    opacity: .35,
    handle: ".drag"
});

【问题讨论】:

    标签: jquery-ui-sortable jquery-draggable


    【解决方案1】:

    [已解决]

    我将 connectWith 拆分如下。

    $(".demo ").sortable({
        connectWith: ".demo",
        opacity: .35,
        handle: ".drag"
    });
    
    $(".demo .column").sortable({
        connectWith: ".column",
        opacity: .35,
        handle: ".drag"
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-15
      • 1970-01-01
      • 1970-01-01
      • 2013-01-29
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      • 2021-11-01
      相关资源
      最近更新 更多