angular-sortable-view icon indicating copy to clipboard operation
angular-sortable-view copied to clipboard

Don't move specific elements

Open jakobmaier opened this issue 10 years ago • 0 comments

Feature request: In my current use case, it should not be possible to drag the last element produced by ng-repeat and it should also not be possible to move another element below the last one.

The first issue can be solved by hiding the sv-handle with ng-show, but it can't be avoided to drag other elements below the last one.

To achieve this, the sv-on-start and sv-on-stop functions could be modified to return false if the reorder is not allowed to happen.

jakobmaier avatar Jun 05 '15 09:06 jakobmaier