mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
refactor(all): allow external imports
This commit is contained in:
33
core/src/components/alert/alert-interface.ts
Normal file
33
core/src/components/alert/alert-interface.ts
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
export interface AlertOptions {
|
||||
header?: string;
|
||||
subHeader?: string;
|
||||
message?: string;
|
||||
cssClass?: string | string[];
|
||||
mode?: string;
|
||||
inputs?: AlertInput[];
|
||||
buttons?: (AlertButton|string)[];
|
||||
enableBackdropDismiss?: boolean;
|
||||
translucent?: boolean;
|
||||
}
|
||||
|
||||
export interface AlertInput {
|
||||
type: string;
|
||||
name: string | number;
|
||||
placeholder?: string;
|
||||
value?: string;
|
||||
label?: string;
|
||||
checked?: boolean;
|
||||
disabled?: boolean;
|
||||
id?: string;
|
||||
handler?: Function;
|
||||
min?: string | number;
|
||||
max?: string | number;
|
||||
}
|
||||
|
||||
export interface AlertButton {
|
||||
text: string;
|
||||
role?: string;
|
||||
cssClass?: string | string[];
|
||||
handler?: (value: any) => boolean|void;
|
||||
}
|
Reference in New Issue
Block a user