carbon-components-angular
Version:
Next generation components
58 lines (54 loc) • 2.36 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | notification.component.d.ts
*
* Copyright 2014, 2024 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { NotificationContent } from "./notification-content.interface";
import { I18n } from "carbon-components-angular/i18n";
import { NotificationDisplayService } from "./notification-display.service";
import { BaseNotification } from "./base-notification.component";
import * as i0 from "@angular/core";
/**
* Notification messages are displayed toward the top of the UI and do not interrupt user’s work.
*
* [See demo](../../?path=/story/components-notification--basic)
*/
export declare class Notification extends BaseNotification {
protected notificationDisplayService: NotificationDisplayService;
protected i18n: I18n;
private static notificationCount;
/**
* Can have `type`, `title`, and `message` members.
*
* `type` can be one of `"error"`, `"info"`, `"info-square"`, `"warning"`, `"warning-alt"`, or `"success"`
*
* `message` is the message to display
*/
get notificationObj(): NotificationContent;
set notificationObj(obj: NotificationContent);
notificationID: string;
notificationClass: boolean;
get isError(): boolean;
get isInfo(): boolean;
get isInfoSquare(): boolean;
get isSuccess(): boolean;
get isWarning(): boolean;
get isWarningAlt(): boolean;
get isLowContrast(): boolean;
get isCloseHidden(): boolean;
constructor(notificationDisplayService: NotificationDisplayService, i18n: I18n);
static ɵfac: i0.ɵɵFactoryDeclaration<Notification, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Notification, "cds-notification, cds-inline-notification, ibm-notification, ibm-inline-notification", never, { "notificationObj": "notificationObj"; }, {}, never, never, false>;
}