From 9c925806ed5ffeed5eb6cb4deac7100328a834ef Mon Sep 17 00:00:00 2001 From: John-Luke Date: Mon, 17 Apr 2017 14:27:13 -0300 Subject: [PATCH] feat(action-sheet): update to newest version --- src/@ionic-native/plugins/action-sheet/index.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index fda207bb5..47331139d 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -13,6 +13,11 @@ export interface ActionSheetOptions { */ title?: string; + /** + * The subtitle for the actionsheet (IOS only) + */ + subtitle?: string + /** * Theme to be used on Android */ @@ -43,6 +48,10 @@ export interface ActionSheetOptions { */ position?: number[]; + /** + * Choose if destructive button will be the last + */ + destructiveButtonLast: boolean } /** @@ -65,10 +74,12 @@ export interface ActionSheetOptions { * * const options: ActionSheetOptions = { * title: 'What do you want with this image?', + * subtitle: 'Choose an action' * buttonLabels: buttonLabels, * addCancelButtonWithLabel: 'Cancel', * addDestructiveButtonWithLabel: 'Delete', - * androidTheme: this.actionSheet.ANDROID_THEMES.THEME_HOLO_DARK + * androidTheme: this.actionSheet.ANDROID_THEMES.THEME_HOLO_DARK, + * destructiveButtonLast: true * }; * * this.actionSheet.show(options).then((buttonIndex: number) => { @@ -83,7 +94,7 @@ export interface ActionSheetOptions { plugin: 'cordova-plugin-actionsheet', pluginRef: 'plugins.actionsheet', repo: 'https://github.com/EddyVerbruggen/cordova-plugin-actionsheet', - platforms: ['Android', 'iOS', 'Windows Phone 8'] + platforms: ['Android', 'iOS', 'Windows Phone 8', 'Browser'] }) @Injectable() export class ActionSheet {