Skip to content

@vttforge/types / NotificationsApi

Interface: NotificationsApi ​

ui.notifications.

Methods ​

clear() ​

clear(): void

Returns ​

void


error() ​

error(message, options?): Readonly<Notification>

Parameters ​

message ​

string | Error

options? ​

NotificationOptions

Returns ​

Readonly<Notification>


has() ​

has(notification): boolean

Parameters ​

notification ​

number | Notification

Returns ​

boolean


info() ​

info(message, options?): Readonly<Notification>

Parameters ​

message ​

string

options? ​

NotificationOptions

Returns ​

Readonly<Notification>


notify() ​

notify(message, type?, options?): Notification

Parameters ​

message ​

string

type? ​

NotificationType

options? ​

NotificationOptions

Returns ​

Notification


remove() ​

remove(notification): void

Parameters ​

notification ​

Notification

Returns ​

void


success() ​

success(message, options?): Readonly<Notification>

Parameters ​

message ​

string

options? ​

NotificationOptions

Returns ​

Readonly<Notification>


update() ​

update(notification, update): void

Parameters ​

notification ​

Notification

update ​

Partial<Notification>

Returns ​

void


warn() ​

warn(message, options?): Readonly<Notification>

Parameters ​

message ​

string

options? ​

NotificationOptions

Returns ​

Readonly<Notification>

MIT licensed.