UNPKG

nativescript-easy-dialog

Version:

nativescript-easy-dialogr for ios And android

51 lines (50 loc) 1.21 kB
export declare enum CFAlertStyle { NOTIFICATION = 2, ALERT = 0, BOTTOM_SHEET = 1, } export declare enum CFAlertActionStyle { DEFAULT = 1, NEGATIVE = 2, POSITIVE = 0, } export declare enum CFAlertActionAlignment { START = 2, END = 1, CENTER = 3, JUSTIFIED = 0, } export declare enum CFAlertGravity { START = 0, CENTER_HORIZONTAL = 1, END = 2, } export interface DialogOptions { dialogStyle: CFAlertStyle; title: string; titleColor?: string; message?: string; messageColor?: string; textColor?: string; textAlignment?: CFAlertGravity; backgroundColor?: string; backgroundBlur?: boolean; cancellable?: boolean; headerView?: any; footerView?: any; onDismiss?: Function; buttons?: [{ text: string; buttonStyle: CFAlertActionStyle; buttonAlignment?: CFAlertActionAlignment; textColor?: string; backgroundColor?: string; onClick: Function; }]; simpleList?: any; singleChoiceList?: any; multiChoiceList?: any; } export declare class CFAlertDialog { show(options: DialogOptions): void; }