docs(): update examples

This commit is contained in:
mhartington
2018-06-14 11:46:38 -04:00
parent ad3538d089
commit 04e807f459
29 changed files with 748 additions and 402 deletions

View File

@ -10,12 +10,6 @@ refresher.
```html
<ion-content>
<ion-refresher slot="fixed">
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
</ion-content>
```

View File

@ -0,0 +1,23 @@
```html
<ion-content>
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
</ion-content>
```
```typescript
@Component({...})
export class NewsFeedPage {
doRefresh(event) {
console.log('Begin async operation', refresher);
setTimeout(() => {
console.log('Async operation has ended');
event.target.complete();
}, 2000);
}
}
```

View File

@ -0,0 +1,21 @@
```html
<ion-content>
<ion-refresher slot="fixed">
<ion-refresher-content>
</ion-refresher-content>
</ion-refresher>
</ion-content>
<!-- or for custom content -->
<ion-content>
<ion-refresher slot="fixed">
<ion-refresher-content
pulling-icon="arrow-dropdown"
pulling-text="Pull to refresh"
refreshing-spinner="circles"
refreshing-text="Refreshing...">
</ion-refresher-content>
</ion-refresher>
</ion-content>
```