Nativescript 禁用ListView滚动反弹
是否可以使用经典ListView禁用滚动反弹Nativescript 禁用ListView滚动反弹,nativescript,angular2-nativescript,Nativescript,Angular2 Nativescript,是否可以使用经典ListView禁用滚动反弹 <ListView [items]="countries"> <ng-template let-country="item" let-i="index" let-odd="odd" let-even="even"> <StackLayout> </StackLayout> </ng-template> </ListView> 在
<ListView [items]="countries">
<ng-template let-country="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout>
</StackLayout>
</ng-template>
</ListView>
在本机视图(UITableView)上将
属性设置为false
在本机视图(UITableView)上将属性设置为false
onLoaded(args) {
if (args.object.ios) {
args.object.ios.bounces = false;
}
}