@stratio/egeo
Version:
Stratio egeo library of components in Angular 2
41 lines (40 loc) • 823 B
TypeScript
export declare enum StModalType {
INFO = 0,
WARNING = 1,
NEUTRAL = 2,
}
export declare enum StModalWidth {
COMPACT = 0,
REGULAR = 1,
LARGE = 2,
}
export declare enum StModalMainTextSize {
BIG = 0,
MEDIUM = 1,
}
export declare enum StModalResponse {
YES = 0,
NO = 1,
CLOSE = 2,
}
export interface StModalButton {
icon?: string;
iconLeft?: boolean;
primary?: boolean;
label: string;
response: StModalResponse;
}
export interface StModalConfig {
contextualTitle?: string;
modalTitle?: string;
message?: string;
html?: string;
mainText?: StModalMainTextSize;
modalType?: StModalType;
modalWidth?: StModalWidth;
inputs?: Object;
outputs?: Object;
buttons?: StModalButton[];
closeOnAccept?: boolean;
qaTag: string;
}