angularjs dragdrop : I applied the ordering, but didn't changed the data -


it hard make sample sharing situation.

question 1. if try sample, applied orderby attribute in ng-repeat , added attribute, applyfilter in jqyoui-drragble. ordered list in view well-done. if drag 1 of these upper div scope, item moved not order one, 1 in status when not ordered.

upper div

<div class="caption">                 <div class="btn btn-info btn-draggable"                     ng-repeat="item in userpersystem | orderby : 'userid' " ng-show="true" data-drag="true"                     data-jqyoui-options="{revert: 'invalid'}" ng-model="userpersystem"                     jqyoui-draggable="{index: {{$index}},animate:true, applyfilter: 'filterit'}">{{item.userid}}</div>             </div> 

below div

<div class="btn btn-droppable"                          ng-repeat="item in users | orderby : 'userid'"                           data-drop="true" ng-model='users'                         data-jqyoui-options="{accept:'.btn-draggable:not([ng-model=users])'}"                         jqyoui-droppable="{index: {{$index}}, applyfilter: 'filterit'}">                          <div class="btn btn-info btn-draggable" data-drag="true"                              data-jqyoui-options="{revert: 'invalid'}" ng-model="users"                             jqyoui-draggable="{index: {{$index}},animate:true}"                             ng-hide="!item.userid">{{item.userid}}                         </div> 

question 2 if drag item, want remove item in previous scope. how can achieve this?

thanks reading question.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -