From 3a8e958684c32b22076868b198d0aee7e9fcf526 Mon Sep 17 00:00:00 2001 From: Ibby Date: Tue, 6 Dec 2016 08:06:47 -0500 Subject: [PATCH] style(): move interface to top --- src/plugins/actionsheet.ts | 88 +++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/plugins/actionsheet.ts b/src/plugins/actionsheet.ts index e8ce5b72a..aaff5808a 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[]; - -}