Reputation: 65870
Can you tell me how to use startY
with the Ionic refresher? I have used like below.But it is not working? It seems startY
is a getter
only method no? We cannot set a value for it.Which is Bad :(
My use case:
At this moment where pull to refresh can be triggered from anywhere on the screen. is there an option on Ionic that the gesture used to trigger pull ONLY works when pulling down is done from the very upper part of the screen?
<ion-refresher (ionRefresh)="getData($event)" [pullMin]="180" startY="80">
<ion-refresher-content pullingIcon="arrow-dropdown" pullingText="Pull to refresh" refreshingSpinner="crescent" refreshingText="Refreshing...">
</ion-refresher-content>
</ion-refresher>
Upvotes: 1
Views: 1038
Reputation: 681
New:
At this moment you can't.They'll provide this feature in the future. Set Refresher startY position
Old:
It's the Y position of where user started to pull the refresher in the page. You can get it like this.
refreshList(refresher) {
this.myService.getList().then((data) => {
console.log(refresher.startY);
refresher.complete();
});
}
I don't think you can set a value like mensioned in the question.
Upvotes: 1