@alauda/ui
Version:
Angular UI components by Alauda Frontend Team.
17 lines (16 loc) • 639 B
TypeScript
import { ComponentType } from '@angular/cdk/portal';
import { InjectionToken, TemplateRef } from '@angular/core';
import { MessageConfig, MessageGlobalConfig } from '../message';
export interface NotificationConfig extends MessageConfig {
title?: string;
contentRef?: ComponentType<void> | TemplateRef<any>;
footerRef?: TemplateRef<any>;
context?: unknown;
customClass?: string;
}
export type NotificationGlobalConfig = MessageGlobalConfig;
export declare const NOTIFICATION_CONFIG: InjectionToken<MessageGlobalConfig>;
export declare const NOTIFICATION_DEFAULT_CONFIG: {
duration: number;
maxStack: number;
};