@nstudio/nativescript-fancyalert
Version:
Fancy alerts for NativeScript.
20 lines (19 loc) • 1.05 kB
TypeScript
export * from './common';
export declare enum IFancyAlertSupportedTypesAndroid {
INFO = 0,
HELP = 1,
WRONG = 2,
SUCCESS = 3,
WARNING = 4,
EDIT = 5
}
export declare class TNSFancyAlert {
static shouldDismissOnTapOutside: boolean;
static showSuccess(title: string, subTitle?: string, closeBtnTitle?: string): Promise<void>;
static showError(title: string, subTitle?: string, closeBtnTitle?: string): Promise<void>;
static showNotice(title: string, subTitle?: string, closeBtnTitle?: string): Promise<void>;
static showWarning(title: string, subTitle?: string, closeBtnTitle?: string): Promise<void>;
static showEdit(title: string, subTitle?: string, closeBtnTitle?: string): Promise<any>;
static showInfo(title: string, subTitle?: string, closeBtnTitle?: string): Promise<void>;
static showColorDialog(title: string, subTitle?: string, okBtnTitle?: string, cancelBtnTitle?: string, backgroundColor?: string, titleTextColor?: string, contextTextColor?: string, contentImage?: any): Promise<void>;
}