How to dynamically disable ui-sortable directive in angular-ui

后端 未结 4 1507
野趣味
野趣味 2021-02-13 01:41

I am using angular-ui for sortable using ui-sortable directive. Is it possible to dynamically enable/disable sortable functionality based on the scope state? So I need to have a

4条回答
  •  无人共我
    2021-02-13 02:13

    HTML

    JS

    vm.groupSortable = {
        connectWith: ".group-container",
        disabled: true
    };
    
    vm.disableDragAndDrop = function(bVar)
    {
        vm.groupSortable.disabled = bVar;
    };
    

提交回复
热议问题