【发布时间】:2017-07-20 14:27:17
【问题描述】:
我有一个包含离子项目的离子列表。 can-swipe 在单个项目上设置为 true。我将它切换到false 以尝试禁用对项目的滑动,但这并没有禁用滑动(这是我第一次测试,看看我是否可以将条件连接到can-swipe 属性)。
我将如何禁用某些项目,因为 can-swipe="false" 没有做到这一点?
<ion-list show-reorder="data.showReorder">
<ion-item ng-repeat="i in items track by $index" class="item item-remove-animate"
can-swipe="true" ng-click="manageOption($index);">
<b>{{i.Name}}</b>
<ion-option-button class="button-assertive" ng-click="deleteOption($index);">
Delete
</ion-option-button>
<ion-reorder-button class="ion-navicon" on-reorder="moveOption(o, $fromIndex, $toIndex)"></ion-reorder-button>
</ion-item>
</ion-list>
【问题讨论】:
标签: angularjs ionic-framework ionic