carbon-components-angular
Version:
Next generation components
58 lines (54 loc) • 2.26 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | toast.component.d.ts
*
* Copyright 2014, 2025 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 { OnInit } from "@angular/core";
import { ToastContent } from "./notification-content.interface";
import { NotificationDisplayService } from "./notification-display.service";
import { I18n } from "carbon-components-angular/i18n";
import { BaseNotification } from "./base-notification.component";
import * as i0 from "@angular/core";
/**
* Toast messages are displayed toward the top of the UI and do not interrupt user’s work.
*
* [See demo](../../?path=/story/components-notification--toast)
*/
export declare class Toast extends BaseNotification implements OnInit {
protected notificationDisplayService: NotificationDisplayService;
protected i18n: I18n;
private static toastCount;
/**
* Can have `type`, `title`, `subtitle`, and `caption` members.
*
* `type` can be one of `"error"`, `"info"`, `"info-square"`, `"warning"`, `"warning-alt"`, or `"success"`
*/
set notificationObj(obj: ToastContent);
get notificationObj(): ToastContent;
toastID: string;
toastClass: 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);
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "cds-toast, ibm-toast", never, { "notificationObj": "notificationObj"; }, {}, never, never, false>;
}