From 1af75225cb11c7f2c550ec734cc2f355234b97d2 Mon Sep 17 00:00:00 2001 From: Justin Willis Date: Tue, 1 Mar 2016 23:55:47 -0600 Subject: [PATCH] docs(demos) make destructive button top button --- demos/action-sheet/index.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/demos/action-sheet/index.ts b/demos/action-sheet/index.ts index e7b68554d3..c3f7ae100c 100644 --- a/demos/action-sheet/index.ts +++ b/demos/action-sheet/index.ts @@ -25,6 +25,14 @@ export class InitialPage { var androidSheet = { title: 'Albums', buttons: [ + { + text: 'Delete', + style: 'destructive', + icon: 'md-trash', + handler: () => { + console.log('Destructive clicked'); + } + }, { text: 'Share', icon: 'share', handler: () => { @@ -43,14 +51,6 @@ export class InitialPage { console.log('Favorite clicked'); } }, - { - text: 'Delete', - style: 'destructive', - icon: 'md-trash', - handler: () => { - console.log('Destructive clicked'); - } - }, { text: 'Cancel', style: 'cancel', @@ -65,6 +65,13 @@ export class InitialPage { let actionSheet = ActionSheet.create( androidSheet || { buttons: [ + { + text: 'Delete', + style: 'destructive', + handler: () => { + console.log('Destructive clicked'); + } + }, { text: 'Share', handler: () => { @@ -83,13 +90,6 @@ export class InitialPage { console.log('Favorite clicked'); } }, - { - text: 'Delete', - style: 'destructive', - handler: () => { - console.log('Destructive clicked'); - } - }, { text: 'Cancel', style: 'cancel',