fix(actionSheet): fix border bottom

This commit is contained in:
Adam Bradley
2015-12-30 20:53:00 -06:00
parent 1e427443ad
commit 7ed5c36a44
3 changed files with 41 additions and 2 deletions

View File

@ -51,6 +51,10 @@ ion-action-sheet {
.action-sheet-title,
.action-sheet-option {
border-bottom: 1px solid $action-sheet-ios-border-color;
&:last-child {
border-bottom: 0;
}
}
.action-sheet-button {

View File

@ -10,7 +10,7 @@ class E2EPage {
this.nav = nav;
}
openActionSheet(ev) {
openActionSheet1(ev) {
this.result = '';
let actionSheet = ActionSheet.create({
@ -53,6 +53,40 @@ class E2EPage {
this.nav.present(actionSheet);
}
openActionSheet2(ev) {
this.result = '';
let actionSheet = ActionSheet.create({
buttons: [
{
text: 'Destructive',
style: 'destructive',
handler: () => {
console.log('Destructive clicked');
this.result = 'Destructive';
}
},
{
text: 'Archive',
handler: () => {
console.log('Archive clicked');
this.result = 'Archived';
}
},
{
text: 'Cancel',
style: 'cancel',
handler: () => {
console.log('cancel this clicked');
this.result = 'Canceled';
}
}
]
});
this.nav.present(actionSheet);
}
}

View File

@ -4,7 +4,8 @@
</ion-navbar>
<ion-content padding>
<button class="e2eOpenActionSheet" (click)="openActionSheet()">Open Action Sheet</button>
<button class="e2eOpenActionSheet" (click)="openActionSheet1()">Open Action Sheet 1</button>
<button (click)="openActionSheet2()">Open Action Sheet 2</button>
<pre>
Result: {{result}}