簡體   English   中英

更新'items'選項以進行可排序

[英]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')

http://docs.jquery.com/UI/Sortable#method-option

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM