ionic-team / ionic-team/ionic-framework
feat: Ability to programmatically start `ion-refresher`
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
# 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
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100