a5hik / ng-sortable

AngularJS Library for Drag and Drop, supports Sortable and Draggable. Supports Touch devices.

Home Page:http://a5hik.github.io/ng-sortable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Drag both Horizontally and Vertically feature

Irenedan opened this issue · comments

Hi~I need your help.
About: Drag both Horizontally and Vertically feature.
I want to freely move pictures between different columns or rows (it is different from Grid), how can I deal with this?

<div data-as-sortable="menusSortConfig" data-ng-model="images">
      <div ng-style="{'background-image':'url(' + image.thumbURL + ')'}"
           ng-repeat="image in images" data-as-sortable-item>
        <button data-as-sortable-item-handle>move!</button>
      </div>
</div>

52c7727b08a7919655039eb947775c5