ionic-framework
ionic-framework copied to clipboard
feat: Ability to programmatically start `ion-refresher`
Feature Request
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.4.0
System:
NodeJS : v8.9.4
npm : 4.2.0
OS : Windows 10
Describe the Feature Request As it was possible in Ionic 3.9.2, I would like to have a method to programaticaly begin refresh of a Refresher. I use it on every listPage to automatically load my data and show user that he can pulldown to refresh data
Describe Preferred Solution A method on Refresher object which do the job.
Describe Alternatives Here is my Ionic 3.9.2 code to do this
public IonRefreshOpen(refresher: Refresher) {
this._refresher = refresher;
this._refresher._top = `${refresher.pullMin}px`;
this._refresher._beginRefresh();
}
Thanks for your answers
This is interesting, but we will probably not add this feature until 4.0 final is released! It was not a public API at all in Ionic 3 either
Could you work in a PR?
Hi ManuCoporat,
First, thanks for your answer.
What do you mean by "work in a PR" ?
If i could create a Pull Request ? Sure
If i could follow the PR to check the feature advancement ? Sure
If i could dev this feature ? Why not
@manucorporat do you know if there's any plan to put this functionality back in the coming releases for Ionic 4? otherwise I'll need to make some large changes in our UX for updating content, so just wondering if I should plan for that
@manucorporat assuming I can figure out how to test my changes to close out #17166 and issue a PR, I will then work on issuing a PR for this as well... will you be open to accepting a PR for this issue?
I created a PR 😊 #21972