package.notyf.view.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notyf Show documentation
Show all versions of notyf Show documentation
A dead simple, responsive, a11y, dependency-free, vanilla JavaScript toast library.
The newest version!
import { NotyfArrayEvent, NotyfNotification, NotyfEventCallback } from './notyf.models';
import { NotyfEvent } from './notyf.options';
export declare class NotyfView {
a11yContainer: HTMLElement;
animationEndEventName: string;
container: HTMLElement;
private notifications;
private events;
private readonly X_POSITION_FLEX_MAP;
private readonly Y_POSITION_FLEX_MAP;
constructor();
on(event: NotyfEvent, cb: NotyfEventCallback): void;
update(notification: NotyfNotification, type: NotyfArrayEvent): void;
removeNotification(notification: NotyfNotification): void;
addNotification(notification: NotyfNotification): void;
private _renderNotification;
private _popRenderedNotification;
private getXPosition;
private getYPosition;
private adjustContainerAlignment;
private _buildNotificationCard;
private _createHTMLElement;
/**
* Creates an invisible container which will announce the notyfs to
* screen readers
*/
private _createA11yContainer;
/**
* Announces a message to screenreaders.
*/
private _announce;
/**
* Determine which animationend event is supported
*/
private _getAnimationEndEventName;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy