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

Commit 7e9af9d

Browse files
update examples
1 parent 1594b18 commit 7e9af9d

File tree

2 files changed

+40
-45
lines changed

2 files changed

+40
-45
lines changed

src/app/pages/buttons/buttons.page.html

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,44 @@
1010
<ion-label>Example</ion-label>
1111
</ion-item-divider>
1212

13-
<ion-card>
14-
<ion-toolbar>
15-
<fiv-buttons [iconsOnly]="iconsOnly" [forceActionsheet]="forceActionsheet" [forcePopover]="forcePopover"
16-
[header]="header" [subHeader]="subHeader" [count]="count" slot="end">
17-
<fiv-button [color]="'primary'" (click)="presentToast('add clicked')" [text]="'Add'">
18-
</fiv-button>
19-
<fiv-button (click)="presentToast('delete clicked')" [icon]="'md-trash'" [text]="'Delete'">
20-
</fiv-button>
21-
<fiv-button (click)="presentToast('select image clicked')" [icon]="'md-image'" [text]="'Select Image'">
22-
</fiv-button>
23-
<fiv-button (click)="presentToast('take photo clicked')" [icon]="'md-camera'" [text]="'Take Photo'">
24-
</fiv-button>
25-
</fiv-buttons>
26-
</ion-toolbar>
27-
<ion-card-content>
28-
Parameters:
13+
<ion-toolbar>
14+
<fiv-buttons [iconsOnly]="iconsOnly" [forceActionsheet]="forceActionsheet" [forcePopover]="forcePopover"
15+
[header]="header" [subHeader]="subHeader" [count]="count" slot="end">
16+
<fiv-button [color]="'primary'" (click)="presentToast('add clicked')" [text]="'Add'">
17+
</fiv-button>
18+
<fiv-button (click)="presentToast('delete clicked')" [icon]="'md-trash'" [text]="'Delete'">
19+
</fiv-button>
20+
<fiv-button (click)="presentToast('select image clicked')" [icon]="'md-image'" [text]="'Select Image'">
21+
</fiv-button>
22+
<fiv-button (click)="presentToast('take photo clicked')" [icon]="'md-camera'" [text]="'Take Photo'">
23+
</fiv-button>
24+
</fiv-buttons>
25+
</ion-toolbar>
2926

30-
<ion-item>
31-
<ion-label position="floating">Number of visible icons outside of popover / actionsheet</ion-label>
32-
<ion-input min="0" max="4" type="number" placeholder="0 - 4" [(ngModel)]="count"></ion-input>
33-
</ion-item>
34-
<ion-item>
35-
<ion-label position="floating">Header Text (Actionsheet only)</ion-label>
36-
<ion-input type="text" placeholder="header" [(ngModel)]="header"></ion-input>
37-
</ion-item>
38-
<ion-item>
39-
<ion-label position="floating">Subheader Text (Actionsheet only)</ion-label>
40-
<ion-input type="text" placeholder="subHeader" [(ngModel)]="subHeader"></ion-input>
41-
</ion-item>
42-
<ion-item>
43-
<ion-label>Force Actionsheet</ion-label>
44-
<ion-checkbox [checked]="forceActionsheet" [(ngModel)]="forceActionsheet" slot="end"></ion-checkbox>
45-
</ion-item>
46-
<ion-item>
47-
<ion-label>Force Popover</ion-label>
48-
<ion-checkbox [checked]="forcePopover" [(ngModel)]="forcePopover" slot="end"></ion-checkbox>
49-
</ion-item>
50-
<ion-item>
51-
<ion-label>Show icons only (Toolbar only)</ion-label>
52-
<ion-checkbox [checked]="iconsOnly" [(ngModel)]="iconsOnly" slot="end"></ion-checkbox>
53-
</ion-item>
54-
</ion-card-content>
55-
</ion-card>
27+
<ion-item>
28+
<ion-label position="floating">Number of visible icons outside of popover / actionsheet</ion-label>
29+
<ion-input min="0" max="4" type="number" placeholder="0 - 4" [(ngModel)]="count"></ion-input>
30+
</ion-item>
31+
<ion-item>
32+
<ion-label position="floating">Header Text (Actionsheet only)</ion-label>
33+
<ion-input type="text" placeholder="header" [(ngModel)]="header"></ion-input>
34+
</ion-item>
35+
<ion-item>
36+
<ion-label position="floating">Subheader Text (Actionsheet only)</ion-label>
37+
<ion-input type="text" placeholder="subHeader" [(ngModel)]="subHeader"></ion-input>
38+
</ion-item>
39+
<ion-item>
40+
<ion-label>Force Actionsheet</ion-label>
41+
<ion-checkbox [checked]="forceActionsheet" [(ngModel)]="forceActionsheet" slot="end"></ion-checkbox>
42+
</ion-item>
43+
<ion-item>
44+
<ion-label>Force Popover</ion-label>
45+
<ion-checkbox [checked]="forcePopover" [(ngModel)]="forcePopover" slot="end"></ion-checkbox>
46+
</ion-item>
47+
<ion-item>
48+
<ion-label>Show icons only (Toolbar only)</ion-label>
49+
<ion-checkbox [checked]="iconsOnly" [(ngModel)]="iconsOnly" slot="end"></ion-checkbox>
50+
</ion-item>
5651

5752
</app-example>
5853
</ion-col>

src/app/pages/fab/fab.page.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
<fiv-fab [mode]="mode" [visible]="visible" [scroll]="scroll" (fivComplete)="icon = 'checkmark'" [pulse]="pulse"
5858
slot="fixed" checkmark="true" #fab
5959
(click)="fab.loading ? fab.complete() : icon === 'checkmark' ? icon = 'fitness' : fab.load()"
60-
[horizontal]="horizontal" [vertical]="vertical" spinColor="primary" [color]="'light'">
61-
<fiv-icon color="primary" slot="icon-only" [name]="icon"></fiv-icon>
62-
<ion-label *ngIf="extended" color="primary">Primary Action</ion-label>
60+
[horizontal]="horizontal" [vertical]="vertical" spinColor="light" [color]="'primary'">
61+
<fiv-icon color="light" slot="icon-only" [name]="icon"></fiv-icon>
62+
<ion-label *ngIf="extended" color="light">Primary Action</ion-label>
6363
</fiv-fab>
6464
</ion-content>
6565

0 commit comments

Comments
 (0)