Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit f7b2b4a

Browse files
Merge pull request #161 from vagnersabadi/update-documentation
Update documentation components
2 parents f547d17 + cc49bc6 commit f7b2b4a

10 files changed

Lines changed: 107 additions & 10 deletions

File tree

src/app/pages/bottom-sheet/bottom-sheet.page.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
<ion-row>
77
<ion-col sizeXl="10" offsetXl="1" sizeLg="10" offsetLg="1" sizeMd="12" sizeXs="12" offsetXs="0" offsetSm="0"
88
offsetMd="0" sizeSm="12" sizeMd="12">
9-
<app-example *fivIf="['mobile']" [api]="'assets/docs/snippets/expandable/api.md'"
10-
[typescript]="'assets/docs/snippets/expandable/ts.md'" [css]="'assets/docs/snippets/expandable/css.md'"
11-
[html]="'assets/docs/snippets/expandable/html.md'" [title]="'Bottom Sheet Component'"
9+
<app-example *fivIf="['mobile']"
10+
[api]="'assets/docs/snippets/bottom-sheet/bottom-sheet.api.md'"
11+
[typescript]="'assets/docs/snippets/bottom-sheet/bottom-sheet.ts.md'"
12+
[css]="'assets/docs/snippets/bottom-sheet/bottom-sheet.css.md'"
13+
[html]="'assets/docs/snippets/bottom-sheet/bottom-sheet.html.md'"
14+
[title]="'Bottom Sheet Component'"
1215
[subtitle]="'Easy to use Bottom Sheet and Content Drawer (mobile only)'">
1316
<ion-list>
1417
<ion-item>
@@ -55,9 +58,12 @@
5558
</ion-list>
5659

5760
</app-example>
58-
<app-example *fivIf="['desktop']" [api]="'assets/docs/snippets/expandable/api.md'"
59-
[typescript]="'assets/docs/snippets/expandable/ts.md'" [css]="'assets/docs/snippets/expandable/css.md'"
60-
[html]="'assets/docs/snippets/expandable/html.md'" [title]="'Bottom Sheet Component'"
61+
<app-example *fivIf="['desktop']"
62+
[api]="'assets/docs/snippets/bottom-sheet/bottom-sheet.api.md'"
63+
[typescript]="'assets/docs/snippets/bottom-sheet/bottom-sheet.ts.md'"
64+
[css]="'assets/docs/snippets/bottom-sheet/bottom-sheet.css.md'"
65+
[html]="'assets/docs/snippets/bottom-sheet/bottom-sheet.html.md'"
66+
[title]="'Bottom Sheet Component'"
6167
[subtitle]="'Easy to use Bottom Sheet and Content Drawer (mobile only)'">
6268

6369
this component only works on mobile.

src/app/pages/refresh/refresh.page.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
<ion-grid class="page-content" fixed>
77
<ion-row>
88
<ion-col size="12">
9-
<app-example [api]="'assets/docs/snippets/expandable/api.md'"
10-
[typescript]="'assets/docs/snippets/expandable/ts.md'" [css]="'assets/docs/snippets/expandable/css.md'"
11-
[html]="'assets/docs/snippets/expandable/html.md'" [title]="'Pull to Refresh'"
12-
[subtitle]="'Material Design Pull to Refresh Layout component (gestures only supported on mobile).'">
9+
<app-example
10+
[api]="'assets/docs/snippets/refresh/refresh.api.md'"
11+
[typescript]="'assets/docs/snippets/refresh/refresh.ts.md'"
12+
[css]="'assets/docs/snippets/refresh/refresh.css.md'"
13+
[html]="'assets/docs/snippets/refresh/refresh.html.md'"
14+
[title]="'Pull to Refresh'"
15+
[subtitle]="'Material Design Pull to Refresh Layout component (gestures only supported on mobile).'">
1316

1417
<ion-button (click)="content.showHint()">
1518
Show hint
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```typescript
2+
...
3+
import { FivBottomSheetModule } from '@fivethree/core';
4+
5+
@NgModule({
6+
imports: [
7+
...
8+
FivBottomSheetModule
9+
],
10+
...
11+
})
12+
export class HomePageModule {}
13+
```

src/assets/docs/snippets/bottom-sheet/bottom-sheet.css.md

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```html
2+
<fiv-bottom-sheet
3+
#fbs
4+
[(state)]="drawerState"
5+
[dockedHeight]="dockedHeight"
6+
[shouldBounce]="shouldBounce"
7+
[distanceTop]="distanceTop"
8+
>
9+
<fiv-bottom-sheet-content
10+
[float]="float"
11+
[rounded]="rounded"
12+
[handle]="handle"
13+
>
14+
...
15+
</fiv-bottom-sheet-content>
16+
</fiv-bottom-sheet>
17+
```
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
```typescript
2+
3+
import { Component, OnInit } from '@angular/core';
4+
import { DrawerState } from '@fivethree/core';
5+
6+
@Component({
7+
selector: 'app-bottom-sheet',
8+
templateUrl: './bottom-sheet.page.html',
9+
styleUrls: ['./bottom-sheet.page.scss']
10+
})
11+
export class BottomSheetPage implements OnInit {
12+
shouldBounce = true;
13+
dockedHeight = 204;
14+
distanceTop = 0;
15+
drawerState = DrawerState.Docked;
16+
states = DrawerState;
17+
18+
handle = true;
19+
float = true;
20+
rounded = true;
21+
22+
constructor() {}
23+
24+
ngOnInit() {}
25+
}
26+
27+
28+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```typescript
2+
...
3+
import { FivLoadingContentModule } from '@fivethree/core';
4+
5+
@NgModule({
6+
imports: [
7+
...
8+
FivLoadingContentModule
9+
],
10+
declarations: [HomePage]
11+
})
12+
export class HomePageModule {}
13+
```

src/assets/docs/snippets/refresh/refresh.css.md

Whitespace-only changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```html
2+
<fiv-loading-content spinColor="dark" #content>
3+
...
4+
5+
<ion-button (click)="content.showHint()">
6+
Show hint
7+
</ion-button>
8+
<ion-button (click)="content.refresh()">
9+
Refresh
10+
</ion-button>
11+
<ion-button (click)="content.completeRefresh()">
12+
complete
13+
</ion-button>
14+
15+
...
16+
</fiv-loading-content>
17+
```

src/assets/docs/snippets/refresh/refresh.ts.md

Whitespace-only changes.

0 commit comments

Comments
 (0)