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<Simplify<Except<Notification, "id"> & Required<Pick<Notification, "id">>>>
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 | Simplify<Except<Notification, "id"> & Required<Pick<Notification, "id">>>
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
undefined | Simplify<Except<Notification, "id"> & Required<Pick<Notification, "id">>>
remove#
▸ remove(id): void
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
void
removeAutoHideTimer#
▸ removeAutoHideTimer(id): void
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
void