20
20
21
21
< ion-list #myList >
22
22
23
+ < ion-item-sliding >
24
+ < ion-item >
25
+ < h2 > No Options</ h2 >
26
+ < p > Should not error or swipe without options</ p >
27
+ </ ion-item >
28
+ </ ion-item-sliding >
29
+
30
+ < ion-item-sliding #item6 >
31
+ < ion-item >
32
+ One Line, dynamic option and text
33
+ </ ion-item >
34
+ < ion-item-options *ngIf ="showOptions ">
35
+ < button ion-button color ="primary ">
36
+ < ion-icon name ="more "> </ ion-icon >
37
+ {{ moreText }}
38
+ </ button >
39
+ < button ion-button color ="secondary " (click) ="archive(item6) ">
40
+ < ion-icon name ="archive "> </ ion-icon >
41
+ {{ archiveText }}
42
+ </ button >
43
+ </ ion-item-options >
44
+ </ ion-item-sliding >
45
+
46
+ < ion-item-sliding #item6 >
47
+ < ion-item >
48
+ Two options, one dynamic option and text
49
+ </ ion-item >
50
+ < ion-item-options side ="left ">
51
+ < button ion-button icon-only color ="primary ">
52
+ < ion-icon name ="more "> </ ion-icon >
53
+ </ button >
54
+ </ ion-item-options >
55
+ < ion-item-options side ="right " *ngIf ="showOptions ">
56
+ < button ion-button color ="primary ">
57
+ < ion-icon name ="more "> </ ion-icon >
58
+ {{ moreText }}
59
+ </ button >
60
+ < button ion-button color ="secondary " (click) ="archive(item6) ">
61
+ < ion-icon name ="archive "> </ ion-icon >
62
+ {{ archiveText }}
63
+ </ button >
64
+ </ ion-item-options >
65
+ </ ion-item-sliding >
66
+
23
67
< ion-item-sliding #item100 >
24
68
< a ion-item >
25
69
< h2 > HubStruck Notifications</ h2 >
@@ -39,7 +83,7 @@ <h2>HubStruck Notifications</h2>
39
83
< button ion-button icon-only color ="danger " (click) ="unread(item100) ">
40
84
< ion-icon name ="trash "> </ ion-icon >
41
85
</ button >
42
- < button ion-button icon-only (click) ="unread(item100) " >
86
+ < button ion-button icon-only (click) ="unread(item100) ">
43
87
< ion-icon name ="star "> </ ion-icon >
44
88
</ button >
45
89
</ ion-item-options >
@@ -90,7 +134,6 @@ <h2>RIGHT/LEFT side - icons</h2>
90
134
</ ion-item-options >
91
135
</ ion-item-sliding >
92
136
93
-
94
137
< ion-item-sliding #item3 >
95
138
< ion-item text-wrap detail-push >
96
139
< h2 > RIGHT/LEFT side - icons (item-left)</ h2 >
@@ -146,21 +189,6 @@ <h2>RIGHT/LEFT side - icons (item-left)</h2>
146
189
</ ion-item-options >
147
190
</ ion-item-sliding >
148
191
149
- < ion-item-sliding #item6 >
150
- < ion-item >
151
- One Line, dynamic option
152
- </ ion-item >
153
- < ion-item-options >
154
- < button ion-button color ="primary ">
155
- < ion-icon name ="more "> </ ion-icon >
156
- {{ moreText }}
157
- </ button >
158
- < button ion-button color ="secondary " (click) ="archive(item6) ">
159
- < ion-icon name ="archive "> </ ion-icon >
160
- {{ archiveText }}
161
- </ button >
162
- </ ion-item-options >
163
- </ ion-item-sliding >
164
192
165
193
< ion-item-sliding #item7 >
166
194
< ion-item >
@@ -240,17 +268,21 @@ <h3>ng-for {{data}}</h3>
240
268
img {
241
269
height : 100px ;
242
270
}
271
+
243
272
# download-spinner {
244
273
display : none;
245
274
}
246
275
247
276
svg circle {
248
277
stroke : white;
249
278
}
279
+
250
280
.downloading # download-spinner {
251
281
display : block;
252
282
}
283
+
253
284
.downloading .download-hide {
254
285
display : none;
255
286
}
287
+
256
288
</ style >
0 commit comments