开发者

Group items in a Sortable list with jQueryUI

开发者 https://www.devze.com 2023-01-16 10:37 出处:网络
I\'d like to be able to group items in a so开发者_开发技巧rtable list. If I group two items, then those two should be dragged together and be put inside a container that I can style. Those items insid

I'd like to be able to group items in a so开发者_开发技巧rtable list. If I group two items, then those two should be dragged together and be put inside a container that I can style. Those items inside that group should be able to be dragged as well inside the group, but that's just a bonus :)

Does anyone know if this is "possible" jQueryUI Sortables?


I ended up using custom selections for my items (adding class "selected") and then added the selected items inside a new LI and UL:

<ul>
    <li></li>
    <li>
        <div>Header</div>
        <ul>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </li>
    <li></li>
</ul>
0

精彩评论

暂无评论...
验证码 换一张
取 消