Skip to content

Class: NotificationsStore#

Hierarchy#

  • NotificationsStore

Index#

Properties#

Methods#

Properties#

Protected autoHideTimers#

autoHideTimers: Map‹string | number, number› = new Map()

Defined in src/renderer/components/notifications/notifications.store.ts:28


notifications#

notifications: IObservableArray‹Notification = observable([], { deep: false })

Defined in src/renderer/components/notifications/notifications.store.ts:26

Methods#

add#

add(notification: Notification): void

Defined in src/renderer/components/notifications/notifications.store.ts:48

Parameters:

Name Type
notification Notification

Returns: void


addAutoHideTimer#

addAutoHideTimer(notification: Notification): void

Defined in src/renderer/components/notifications/notifications.store.ts:30

Parameters:

Name Type
notification Notification

Returns: void


remove#

remove(itemOrId: NotificationId | Notification): boolean

Defined in src/renderer/components/notifications/notifications.store.ts:59

Parameters:

Name Type
itemOrId NotificationId | Notification

Returns: boolean


removeAutoHideTimer#

removeAutoHideTimer(notification: Notification): void

Defined in src/renderer/components/notifications/notifications.store.ts:39

Parameters:

Name Type
notification Notification

Returns: void