primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
107 lines (106 loc) • 2.75 kB
TypeScript
import { BaseStyle } from 'primeng/base';
import * as i0 from "@angular/core";
export declare class ToastStyle extends BaseStyle {
name: string;
theme: ({ dt }: {
dt: any;
}) => string;
classes: {
root: ({ instance }: {
instance: any;
}) => {
[x: string]: boolean;
'p-toast p-component': boolean;
};
message: ({ instance }: {
instance: any;
}) => {
'p-toast-message': boolean;
'p-toast-message-info': boolean;
'p-toast-message-warn': boolean;
'p-toast-message-error': boolean;
'p-toast-message-success': boolean;
'p-toast-message-secondary': boolean;
'p-toast-message-contrast': boolean;
};
messageContent: string;
messageIcon: ({ instance }: {
instance: any;
}) => {
[x: string]: boolean;
'p-toast-message-icon': boolean;
};
messageText: string;
summary: string;
detail: string;
closeButton: string;
closeIcon: ({ instance }: {
instance: any;
}) => {
[x: string]: boolean;
'p-toast-close-icon': boolean;
};
};
inlineStyles: {
root: ({ instance }: {
instance: any;
}) => {
position: string;
top: string;
right: string;
bottom: string;
left: string;
};
};
static ɵfac: i0.ɵɵFactoryDeclaration<ToastStyle, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ToastStyle>;
}
/**
*
* Toast is used to display messages in an overlay.
*
* [Live Demo](https://www.primeng.org/toast/)
*
* @module toaststyle
*
*/
export declare enum ToastClasses {
/**
* Class name of the root element
*/
root = "p-toast",
/**
* Class name of the message element
*/
message = "p-toast-message",
/**
* Class name of the message content element
*/
messageContent = "p-toast-message-content",
/**
* Class name of the message icon element
*/
messageIcon = "p-toast-message-icon",
/**
* Class name of the message text element
*/
messageText = "p-toast-message-text",
/**
* Class name of the summary element
*/
summary = "p-toast-summary",
/**
* Class name of the detail element
*/
detail = "p-toast-detail",
/**
* Class name of the close button element
*/
closeButton = "p-toast-close-button",
/**
* Class name of the close icon element
*/
closeIcon = "p-toast-close-icon"
}
export interface ToastStyle extends BaseStyle {
}