2015-05-05 48 views
0

我正在尝试为门户应用程序使用angular-ui/ui-sortable。 我的应用程序将类似于jQuery UI可排序JQuery UI Sortable Portlets中给出的portlet示例。Portlet with angular-ui/ui-sortable

是否有可能给一个例子或指向正确的方向来实现angular-ui/ui-sortable? 我问这个问题的角度,用户界面/用户界面可排序,他们提到我使用连接列表应该成为你的目标,如果我知道你在找什么堆栈溢出Issue portlets example #356

回答

2

example pen

<div ui-sortable="sortableOptions" class="apps-container screen floatleft" ng-model="list1"> 
     <div class="app" ng-repeat="app in list1">{{$index}} {{app.title}}</div> 
    </div> 
    <div ui-sortable="sortableOptions" class="apps-container screen floatleft" ng-model="list2"> 
     <div class="app" ng-repeat="app in list2">{{$index}} {{app.title}}</div> 
    </div> 
    <div ui-sortable="sortableOptions" class="apps-container screen floatleft" ng-model="list3"> 
     <div class="app" ng-repeat="app in list3">{{$index}} {{app.title}}</div> 
    </div> 
+0

完美。这是我正在寻找的解决方案。 – user1881214

+0

没有upvote?显示一些爱:) – davidpm4

+0

我投票并接受它作为答案。我对这个堆栈流系统并不是很熟悉。对于那个很抱歉。 – user1881214