Skip to content

Commit

Permalink
feat(action-sheet): update to newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Luke authored Apr 17, 2017
1 parent 4bd6aab commit 9c92580
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/@ionic-native/plugins/action-sheet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export interface ActionSheetOptions {
*/
title?: string;

/**
* The subtitle for the actionsheet (IOS only)
*/
subtitle?: string

/**
* Theme to be used on Android
*/
Expand Down Expand Up @@ -43,6 +48,10 @@ export interface ActionSheetOptions {
*/
position?: number[];

/**
* Choose if destructive button will be the last
*/
destructiveButtonLast: boolean
}

/**
Expand All @@ -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) => {
Expand All @@ -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 {
Expand Down

0 comments on commit 9c92580

Please sign in to comment.