@@ -31,15 +31,15 @@ <h2>HubStruck Notifications</h2>
31
31
</ a >
32
32
33
33
< ion-item-options side ="left ">
34
- < button ion-button (click) ="unread(item100) ">
34
+ < button ion-button icon-only (click) ="unread(item100) ">
35
35
< ion-icon name ="mail "> </ ion-icon >
36
36
</ button >
37
37
</ ion-item-options >
38
38
< ion-item-options side ="right ">
39
- < button ion-button danger (click) ="unread(item100) ">
39
+ < button ion-button icon-only color =" danger " (click) ="unread(item100) ">
40
40
< ion-icon name ="trash "> </ ion-icon >
41
41
</ button >
42
- < button ion-button (click) ="unread(item100) " >
42
+ < button ion-button icon-only (click) ="unread(item100) " >
43
43
< ion-icon name ="star "> </ ion-icon >
44
44
</ button >
45
45
</ ion-item-options >
@@ -52,8 +52,8 @@ <h2>RIGHT side - no icons</h2>
52
52
< p > Hey do you want to go to the game tonight?</ p >
53
53
</ button >
54
54
< ion-item-options *ngIf ="slidingEnabled ">
55
- < button ion-button primary (click) ="archive(item0) "> Archive</ button >
56
- < button ion-button danger (click) ="del(item0) "> Delete</ button >
55
+ < button ion-button color =" primary " (click) ="archive(item0) "> Archive</ button >
56
+ < button ion-button color =" danger " (click) ="del(item0) "> Delete</ button >
57
57
</ ion-item-options >
58
58
</ ion-item-sliding >
59
59
@@ -63,8 +63,8 @@ <h2>LEFT side - no icons</h2>
63
63
< p > I think I figured out how to get more Mountain Dew</ p >
64
64
</ a >
65
65
< ion-item-options side ="left " (ionSwipe) ="del($event) " *ngIf ="slidingEnabled ">
66
- < button ion-button primary (click) ="archive(item1) "> Archive</ button >
67
- < button ion-button danger (click) ="del(item1) "> Delete</ button >
66
+ < button ion-button color =" primary " (click) ="archive(item1) "> Archive</ button >
67
+ < button ion-button color =" danger " (click) ="del(item1) "> Delete</ button >
68
68
</ ion-item-options >
69
69
</ ion-item-sliding >
70
70
@@ -75,16 +75,16 @@ <h2>RIGHT/LEFT side - icons</h2>
75
75
< p > I think I figured out how to get more Mountain Dew</ p >
76
76
</ ion-item >
77
77
< ion-item-options side ="left " (ionSwipe) ="unread($event) " *ngIf ="slidingEnabled ">
78
- < button ion-button secondary expandable (click) ="unread(item2) ">
78
+ < button ion-button color =" secondary " expandable (click) ="unread(item2) ">
79
79
< ion-icon name ="ios-checkmark "> </ ion-icon > Unread
80
80
</ button >
81
81
</ ion-item-options >
82
82
83
83
< ion-item-options side ="right " (ionSwipe) ="del(item2) " *ngIf ="slidingEnabled ">
84
- < button ion-button primary (click) ="archive(item2) ">
84
+ < button ion-button color =" primary " (click) ="archive(item2) ">
85
85
< ion-icon name ="mail "> </ ion-icon > Archive
86
86
</ button >
87
- < button ion-button danger (click) ="del(item2) " expandable >
87
+ < button ion-button color =" danger " (click) ="del(item2) " expandable >
88
88
< ion-icon name ="trash "> </ ion-icon > Delete
89
89
</ button >
90
90
</ ion-item-options >
@@ -97,16 +97,16 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
97
97
< p > I think I figured out how to get more Mountain Dew</ p >
98
98
</ ion-item >
99
99
< ion-item-options side ="left " icon-left (ionSwipe) ="unread($event) " *ngIf ="slidingEnabled ">
100
- < button ion-button secondary expandable (click) ="unread(item3) ">
100
+ < button ion-button color =" secondary " expandable (click) ="unread(item3) ">
101
101
< ion-icon name ="ios-checkmark "> </ ion-icon > Unread
102
102
</ button >
103
103
</ ion-item-options >
104
104
105
105
< ion-item-options icon-left (ionSwipe) ="del(item3) ">
106
- < button ion-button primary (click) ="archive(item3) ">
106
+ < button ion-button color =" primary " (click) ="archive(item3) ">
107
107
< ion-icon name ="mail "> </ ion-icon > Archive
108
108
</ button >
109
- < button ion-button danger (click) ="del(item3) " expandable *ngIf ="slidingEnabled ">
109
+ < button ion-button color =" danger " (click) ="del(item3) " expandable *ngIf ="slidingEnabled ">
110
110
< ion-icon name ="trash "> </ ion-icon > Delete
111
111
</ button >
112
112
</ ion-item-options >
@@ -119,7 +119,7 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
119
119
One Line w/ Icon, div only text
120
120
</ ion-item >
121
121
< ion-item-options icon-left (ionSwipe) ="archive($event) ">
122
- < button ion-button primary (click) ="archive(item4) " expandable *ngIf ="slidingEnabled ">
122
+ < button ion-button color =" primary " (click) ="archive(item4) " expandable *ngIf ="slidingEnabled ">
123
123
< ion-icon name ="archive "> </ ion-icon > Archive
124
124
</ button >
125
125
</ ion-item-options >
@@ -134,13 +134,13 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
134
134
One Line w/ Avatar, div only text
135
135
</ ion-item >
136
136
< ion-item-options >
137
- < button ion-button primary expandable >
137
+ < button ion-button color =" primary " expandable >
138
138
< ion-icon name ="more "> </ ion-icon > More
139
139
</ button >
140
- < button ion-button secondary (click) ="archive(item5) ">
140
+ < button ion-button color =" secondary " (click) ="archive(item5) ">
141
141
< ion-icon name ="archive "> </ ion-icon > Archive
142
142
</ button >
143
- < button ion-button danger (click) ="del(item5) ">
143
+ < button ion-button color =" danger " (click) ="del(item5) ">
144
144
< ion-icon name ="trash "> </ ion-icon > Delete
145
145
</ button >
146
146
</ ion-item-options >
@@ -151,11 +151,11 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
151
151
One Line, dynamic option
152
152
</ ion-item >
153
153
< ion-item-options >
154
- < button ion-button primary >
154
+ < button ion-button color =" primary " >
155
155
< ion-icon name ="more "> </ ion-icon >
156
156
{{ moreText }}
157
157
</ button >
158
- < button ion-button secondary (click) ="archive(item6) ">
158
+ < button ion-button color =" secondary " (click) ="archive(item6) ">
159
159
< ion-icon name ="archive "> </ ion-icon >
160
160
{{ archiveText }}
161
161
</ button >
@@ -167,11 +167,11 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
167
167
One Line, dynamic icon-left option
168
168
</ ion-item >
169
169
< ion-item-options icon-left >
170
- < button ion-button primary >
170
+ < button ion-button color =" primary " >
171
171
< ion-icon name ="more "> </ ion-icon >
172
172
{{ moreText }}
173
173
</ button >
174
- < button ion-button secondary (click) ="archive(item7) ">
174
+ < button ion-button color =" secondary " (click) ="archive(item7) ">
175
175
< ion-icon name ="archive "> </ ion-icon >
176
176
{{ archiveText }}
177
177
</ button >
@@ -187,10 +187,10 @@ <h2>DOWNLOAD</h2>
187
187
< p > Paragraph text.</ p >
188
188
</ ion-item >
189
189
< ion-item-options (ionSwipe) ="download($event) ">
190
- < button ion-button primary (click) ="archive(item8) ">
190
+ < button ion-button color =" primary " (click) ="archive(item8) ">
191
191
< ion-icon name ="archive "> </ ion-icon > Archive
192
192
</ button >
193
- < button ion-button secondary expandable (click) ="download(item8) ">
193
+ < button ion-button color =" secondary " expandable (click) ="download(item8) ">
194
194
< ion-icon name ="download " class ="download-hide "> </ ion-icon >
195
195
< div class ="download-hide "> Download</ div >
196
196
< ion-spinner id ="download-spinner "> </ ion-spinner >
@@ -227,7 +227,7 @@ <h2>Normal button (no sliding)</h2>
227
227
< h3 > ng-for {{data}}</ h3 >
228
228
</ ion-item >
229
229
< ion-item-options >
230
- < button ion-button primary (click) ="archive(item9) "> Archive</ button >
230
+ < button ion-button color =" primary " (click) ="archive(item9) "> Archive</ button >
231
231
</ ion-item-options >
232
232
</ ion-item-sliding >
233
233
0 commit comments