You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I don't want to show all items but only the even ones, and not the first 2
I have added ng-if="( $index >= 2 ) && ( ( $index % 2 ) > 0 )"
When they are dragged, the one that is being moved ends up in the right place, but the other ones are not moved in turn to one of the positions that are visible.
The dragged item is just moved in the entire array.
But if you are not showing all items, what you would probably want is that the other items are still in one of the indexes that are "allowed by the ng-if", and that the items that are not shown will stay in the same place.
I could build some kind of fixing function that will be called at sv-on-sort, but it would be nice if it would work out-of-the-box.
The text was updated successfully, but these errors were encountered:
Since I don't want to show all items but only the even ones, and not the first 2
I have added ng-if="( $index >= 2 ) && ( ( $index % 2 ) > 0 )"
When they are dragged, the one that is being moved ends up in the right place, but the other ones are not moved in turn to one of the positions that are visible.
The dragged item is just moved in the entire array.
But if you are not showing all items, what you would probably want is that the other items are still in one of the indexes that are "allowed by the ng-if", and that the items that are not shown will stay in the same place.
I could build some kind of fixing function that will be called at sv-on-sort, but it would be nice if it would work out-of-the-box.
The text was updated successfully, but these errors were encountered: