nativescript-easy-dialog
Version:
nativescript-easy-dialogr for ios And android
56 lines (54 loc) • 1.21 kB
TypeScript
export declare enum CFAlertStyle {
NOTIFICATION = 0,
ALERT = 1,
BOTTOM_SHEET = 2
}
export declare enum CFAlertActionStyle {
DEFAULT = 0,
NEGATIVE = 1,
POSITIVE = 2
}
export declare enum CFAlertActionAlignment {
START = 0,
END = 1,
CENTER = 2,
JUSTIFIED = 3
}
export 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; // nativeView
footerView?: any; // nativeView
onDismiss?: Function; // calback for dismiss
buttons?: any;
simpleList?: {
items: [string];
onClick: Function;
};
singleChoiceList?: {
items: [string];
selectedItem: number;
onClick: Function;
};
multiChoiceList?: {
items: [string];
selectedItems: [boolean];
onClick: Function;
};
}
export declare class CFAlertDialog {
show(options: any): void;
}