Angularjs 通过鼠标拖动扩展角度选择模型以处理选择
我使用定向角度选择模型来创建可选列表 编辑: 我有一个由以下代码生成的可选列表: HTML:Angularjs 通过鼠标拖动扩展角度选择模型以处理选择,angularjs,Angularjs,我使用定向角度选择模型来创建可选列表 编辑: 我有一个由以下代码生成的可选列表: HTML: <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.min.js"></script> <script src="https://cdn.rawgit.com/jtrussell/angular-selection-model/master/dist/selection-mo
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.min.js"></script>
<script src="https://cdn.rawgit.com/jtrussell/angular-selection-model/master/dist/selection-model.js"></script>
<div ng-app="theApp" ng-controller="controller">
<ul>
<li ng-repeat="item in stuff track by $index" selection-model selection-model-mode="multiple-additive">
{{item.label}} - {{item.selected}}
</li>
</ul>
</div>
我希望能够通过鼠标拖动选择多个对象-如示例所示。如何启用此功能?以下是一些角度阻力选择示例 很抱歉只在链接中给出了答案,但您可能比我的解释理解得更清楚
1) http://jsfiddle.net/few5E/
2) https://github.com/willgm/ngSelectable
3) https://github.com/jonotron/angular-selectable
你能在plnkr中发布你的代码吗?
1) http://jsfiddle.net/few5E/
2) https://github.com/willgm/ngSelectable
3) https://github.com/jonotron/angular-selectable