Nestable jQuery plugin - disable dragging between lists

后端 未结 1 982
故里飘歌
故里飘歌 2021-01-22 01:21

I would like to disable dragging between two lists in jQuery nestable plugin.

There is an option group in documentation https://github.com/RamonSmit/Nes

相关标签:
1条回答
  • 2021-01-22 01:32

    In your current code, this refers to the parent scope, somethings like window or document, not .dd.

    You have to call nestable for each list, try this:

    $('.dd').each(function(){
        $(this).nestable({
            maxDepth: 1,
            group: $(this).prop('id')
        });
    });
    
    0 讨论(0)
提交回复
热议问题