@k8slens/extensions / Exports / Renderer / Component / NotificationsStore
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?: () => void ; status?: NotificationStatus ; timeout?: 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?: () => void ; status?: NotificationStatus ; timeout?: number }
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
undefined | { id: NotificationId ; message: NotificationMessage ; onClose?: () => void ; status?: NotificationStatus ; timeout?: number }
remove#
▸ remove(id): void
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
void
removeAutoHideTimer#
▸ removeAutoHideTimer(id): void
Parameters#
| Name | Type |
|---|---|
id |
NotificationId |
Returns#
void