Skip to content

Class: NotificationsStore#

Renderer.Component.NotificationsStore

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

new NotificationsStore()

Properties#

autoHideTimers#

Protected autoHideTimers: Map<NotificationId, number>


notifications#

notifications: IObservableArray<{ id: NotificationId ; message: NotificationMessage ; onClose: undefined | () => void ; status: undefined | NotificationStatus ; timeout: undefined | number }>

Methods#

add#

add(rawNotification): () => void

Parameters#

Name Type
rawNotification Notification

Returns#

fn

▸ (): void

Returns#

void


addAutoHideTimer#

addAutoHideTimer(id): void

Parameters#

Name Type
id NotificationId

Returns#

void


getById#

getById(id): undefined | { id: NotificationId ; message: NotificationMessage ; onClose: undefined | () => void ; status: undefined | NotificationStatus ; timeout: undefined | number }

Parameters#

Name Type
id NotificationId

Returns#

undefined | { id: NotificationId ; message: NotificationMessage ; onClose: undefined | () => void ; status: undefined | NotificationStatus ; timeout: undefined | number }


remove#

remove(id): void

Parameters#

Name Type
id NotificationId

Returns#

void


removeAutoHideTimer#

removeAutoHideTimer(id): void

Parameters#

Name Type
id NotificationId

Returns#

void