![](/img/trans.png)
[英]Can jQuery UI's Sortable handle complex selectors for the items option?
[英]Updating the 'items' option for sortable
我正在使用可排序如下:
$('.column').sortable({
connectWith: "#column1",
revert: 100,
items: ".myItems:not(.excluded)",
}).disableSelection();
是否有可能更新items:
回调?
因此,如果发生特定情况,则items:
变成items: .myItems
而不是.myItems:not(.excluded)
。
您可以通过再次调用sortable()来设置新选项:
$('.column').sortable('option', 'items', '.myItems')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.