UNPKG

fundamental-ngx

Version:

SAP Fundamentals, implemented in Angular

92 lines 4.7 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * Configuration for opening an alert with the AlertService. */ export class AlertConfig { constructor() { /** * Whether the alert is dismissible. */ this.dismissible = true; /** * Width of the alert. */ this.width = '33vw'; /** * Minimum width of the alert. */ this.minWidth = '300px'; /** * Duration of time *in milliseconds* that the alert will be visible. Set to -1 for indefinite. */ this.duration = 10000; /** * Whether the alert should stay open if the mouse is hovering over it. */ this.mousePersist = false; /** * Id of the element that labels the alert. */ this.ariaLabelledBy = null; /** * Aria label for the alert component element. */ this.ariaLabel = null; } } if (false) { /** * Whether the alert is dismissible. * @type {?} */ AlertConfig.prototype.dismissible; /** * The type of the alert. Can be one of *warning*, *success*, *information*, *error* or null. * @type {?} */ AlertConfig.prototype.type; /** * Id for the alert component. If omitted, a unique one is generated. * @type {?} */ AlertConfig.prototype.id; /** * Width of the alert. * @type {?} */ AlertConfig.prototype.width; /** * Minimum width of the alert. * @type {?} */ AlertConfig.prototype.minWidth; /** * Data being injected into the child component or template. * @type {?} */ AlertConfig.prototype.data; /** * Duration of time *in milliseconds* that the alert will be visible. Set to -1 for indefinite. * @type {?} */ AlertConfig.prototype.duration; /** * Whether the alert should stay open if the mouse is hovering over it. * @type {?} */ AlertConfig.prototype.mousePersist; /** * Id of the element that labels the alert. * @type {?} */ AlertConfig.prototype.ariaLabelledBy; /** * Aria label for the alert component element. * @type {?} */ AlertConfig.prototype.ariaLabel; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vZnVuZGFtZW50YWwtbmd4LyIsInNvdXJjZXMiOlsibGliL2FsZXJ0L2FsZXJ0LXV0aWxzL2FsZXJ0LWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1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