You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
428 B

  1. export class Alert {
  2. id?: string;
  3. type?: AlertType;
  4. message?: string;
  5. autoClose?: boolean;
  6. keepAfterRouteChange?: boolean;
  7. fade?: boolean;
  8. constructor(init?:Partial<Alert>) {
  9. Object.assign(this, init);
  10. }
  11. }
  12. export enum AlertType {
  13. Success,
  14. Error,
  15. Info,
  16. Warning
  17. }
  18. export class AlertOptions {
  19. id?: string;
  20. autoClose?: boolean;
  21. keepAfterRouteChange?: boolean;
  22. }