File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/components/action-sheet Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ import { ViewController } from '../../navigation/view-controller';
19
19
'<div class="action-sheet-group">' +
20
20
'<div class="action-sheet-title" id="{{hdrId}}" *ngIf="d.title">{{d.title}}</div>' +
21
21
'<div class="action-sheet-sub-title" id="{{descId}}" *ngIf="d.subTitle">{{d.subTitle}}</div>' +
22
- '<button ion-button="action-sheet-button" (click)="click(b)" *ngFor="let b of d.buttons" class="disable-hover" [ngClass]="b.cssClass">' +
22
+ '<button ion-button="action-sheet-button" (click)="click(b)" *ngFor="let b of d.buttons" class="disable-hover" [attr.icon-left]="b.icon ? \'\' : null" [ ngClass]="b.cssClass">' +
23
23
'<ion-icon [name]="b.icon" *ngIf="b.icon" class="action-sheet-icon"></ion-icon>' +
24
24
'{{b.text}}' +
25
25
'</button>' +
26
26
'</div>' +
27
27
'<div class="action-sheet-group" *ngIf="d.cancelButton">' +
28
- '<button ion-button="action-sheet-button" (click)="click(d.cancelButton)" class="action-sheet-cancel disable-hover" [ngClass]="d.cancelButton.cssClass">' +
28
+ '<button ion-button="action-sheet-button" (click)="click(d.cancelButton)" class="action-sheet-cancel disable-hover" [attr.icon-left]="d.cancelButton.icon ? \'\' : null" [ ngClass]="d.cancelButton.cssClass">' +
29
29
'<ion-icon [name]="d.cancelButton.icon" *ngIf="d.cancelButton.icon" class="action-sheet-icon"></ion-icon>' +
30
30
'{{d.cancelButton.text}}' +
31
31
'</button>' +
Original file line number Diff line number Diff line change @@ -18,23 +18,23 @@ export class E2EPage {
18
18
{
19
19
text : 'Delete' ,
20
20
role : 'destructive' ,
21
- icon : ! this . platform . is ( 'ios' ) ? ' trash' : null ,
21
+ icon : ' trash',
22
22
handler : ( ) => {
23
23
console . log ( 'Delete clicked' ) ;
24
24
this . result = 'Deleted' ;
25
25
}
26
26
} ,
27
27
{
28
28
text : 'Share' ,
29
- icon : ! this . platform . is ( 'ios' ) ? ' share' : null ,
29
+ icon : ' share',
30
30
handler : ( ) => {
31
31
console . log ( 'Share clicked' ) ;
32
32
this . result = 'Shared' ;
33
33
}
34
34
} ,
35
35
{
36
36
text : 'Play' ,
37
- icon : ! this . platform . is ( 'ios' ) ? ' arrow-dropright-circle' : null ,
37
+ icon : ' arrow-dropright-circle',
38
38
handler : ( ) => {
39
39
let modal = this . modalCtrl . create ( ModalPage ) ;
40
40
modal . present ( ) ;
You can’t perform that action at this time.
0 commit comments