fundamental-ngx
Version:
SAP Fiori Fundamentals, implemented in Angular
24 lines (23 loc) • 925 B
TypeScript
/**
* Configuration for opening an alert with the AlertService.
*/
export declare class AlertConfig {
/** Whether the alert is dismissible. */
dismissible?: boolean;
/** The type of the alert. Can be one of *warning*, *success*, *information*, *error* or null. */
type?: string;
/** Id for the alert component. If omitted, a unique one is generated. */
id?: string;
/** Width of the alert. */
width?: string;
/** Data being injected into the child component or template. */
data?: any;
/** Duration of time *in milliseconds* that the alert will be visible. Set to -1 for indefinite. */
duration?: number;
/** Whether the alert should stay open if the mouse is hovering over it. */
mousePersist?: boolean;
/** Id of the element that labels the alert. */
ariaLabelledBy?: string;
/** Aria label for the alert component element. */
ariaLabel?: string;
}