ionic-team / ionic-team/ionic-framework
feat: Ability to programmatically start `ion-refresher`
- Ngôn ngữ chính
- TypeScript
- Star
- 52.7k
- Fork
- 13.3k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 51
Mô tả
# 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
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by locating the current ion-refresher/Refresher implementation and its existing _beginRefresh and pullMin usage. Compare that path with the Ionic 3.9.2 behavior described here, then determine the public API and verification needed so a programmatic refresh visibly begins and loads data.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100