@openexo/design-system
Version:
OpenExO design system
46 lines (45 loc) • 1.09 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
declare enum TypeAlertEnum {
info = "info",
success = "success",
warning = "warning",
danger = "danger"
}
export declare class AlertComponent implements OnInit {
private sanitizer;
/**
* Type of alert to show. By default is info type
*/
typeAlert: TypeAlertEnum;
/**
* Message to show inside of alert.
*/
message: string;
/**
* Indicates if the alert can be closed.
*/
isCloseable: boolean;
/**
* Text for the button Close
*/
closeButtonText: string;
/**
* Text for the button with action
*/
actionButtonText: string;
/**
* Emit an event when the user click on a button with action
*/
sendAction: EventEmitter<any>;
showMessage: boolean;
typeAlertEnum: typeof TypeAlertEnum;
constructor(sanitizer: DomSanitizer);
ngOnInit(): void;
/**
* Action to hide the alert
*/
onClose(): void;
onAction(): void;
}
export {};