diff --git a/src/plugins/actionsheet.ts b/src/plugins/actionsheet.ts index e8ce5b72..aaff5808 100644 --- a/src/plugins/actionsheet.ts +++ b/src/plugins/actionsheet.ts @@ -1,5 +1,49 @@ import { Cordova, Plugin } from './plugin'; +export interface ActionSheetOptions { + + /** + * The labels for the buttons. Uses the index x + */ + buttonLabels: string[]; + + /** + * The title for the actionsheet + */ + title?: string; + + /** + * Theme to be used on Android + */ + androidTheme?: number; + + /** + * Enable a cancel on Android + */ + androidEnableCancelButton?: boolean; + + /** + * Enable a cancel on Windows Phone + */ + winphoneEnableCancelButton?: boolean; + + /** + * Add a cancel button with text + */ + addCancelButtonWithLabel?: string; + + /** + * Add a destructive button with text + */ + addDestructiveButtonWithLabel?: string; + + /** + * On an iPad, set the X,Y position + */ + position?: number[]; + +} + /** * @name Action Sheet * @description @@ -51,47 +95,3 @@ export class ActionSheet { static hide(options?: any): Promise { return; } } - -export interface ActionSheetOptions { - - /** - * The labels for the buttons. Uses the index x - */ - buttonLabels: string[]; - - /** - * The title for the actionsheet - */ - title?: string; - - /** - * Theme to be used on Android - */ - androidTheme?: number; - - /** - * Enable a cancel on Android - */ - androidEnableCancelButton?: boolean; - - /** - * Enable a cancel on Windows Phone - */ - winphoneEnableCancelButton?: boolean; - - /** - * Add a cancel button with text - */ - addCancelButtonWithLabel?: string; - - /** - * Add a destructive button with text - */ - addDestructiveButtonWithLabel?: string; - - /** - * On an iPad, set the X,Y position - */ - position?: number[]; - -}