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

后端 未结 4 1600
野趣味
野趣味 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 01:53

    My first attempt at this would include a new directive with a link function that compiles a template fragment either including or not including ui-sortable based upon some value in the scope.

    Code when I have time.

提交回复
热议问题