[英]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.