fix(actionSheet): action sheet icons

This commit is contained in:
Adam Bradley
2015-12-31 20:47:12 -06:00
parent 5c43f7bc35
commit a63b5044df
5 changed files with 37 additions and 26 deletions

View File

@@ -14,13 +14,14 @@ class E2EPage {
this.result = '';
let actionSheet = ActionSheet.create({
title: 'Modify your album',
buttons: [
{
text: 'Cancel',
style: 'cancel', // will always sort to be on the bottom
text: 'Destructive',
style: 'destructive',
handler: () => {
console.log('cancel this clicked');
this.result = 'Canceled';
console.log('Destructive clicked');
this.result = 'Destructive';
}
},
{
@@ -40,11 +41,11 @@ class E2EPage {
}
},
{
text: 'Destructive',
style: 'destructive',
text: 'Cancel',
style: 'cancel', // will always sort to be on the bottom
handler: () => {
console.log('Destructive clicked');
this.result = 'Destructive';
console.log('cancel this clicked');
this.result = 'Canceled';
}
}
]
@@ -58,14 +59,6 @@ class E2EPage {
let actionSheet = ActionSheet.create({
buttons: [
{
text: 'Destructive',
style: 'destructive',
handler: () => {
console.log('Destructive clicked');
this.result = 'Destructive';
}
},
{
text: 'Archive',
handler: () => {
@@ -80,6 +73,14 @@ class E2EPage {
console.log('cancel this clicked');
this.result = 'Canceled';
}
},
{
text: 'Destructive',
style: 'destructive',
handler: () => {
console.log('Destructive clicked');
this.result = 'Destructive';
}
}
]
});