Class: Notification

PSV.components~Notification

new Notification (psv)

Notification class

Name Type Description
psv PSV.Viewer

Extends

Members

children Array.<PSV.components.AbstractComponent> packagereadonly inherited overrides

All child components

container HTMLElement readonly inherited overrides

prop Object protected inherited overrides

Internal properties

Properties:
Name Type Description
timeout *

Reference to main controller

Methods

destroy () protected inherited overrides

Destroys the component

hide () overrides

Hides the notification

Fires:
  • PSV.event:hide-notification

isVisible ()boolean inherited overrides

Check if the component is visible

Returns:
Type Description
boolean

refreshUi () package inherited overrides

Refresh UI

Must be be a very lightweight operation

show (config) overrides

Displays a notification on the viewer

Name Type Description
config Object | string
Name Type Description
content string
timeout number optional
Fires:
  • PSV.event:show-notification
Examples
viewer.showNotification({ content: 'Hello world', timeout: 5000 })
viewer.showNotification('Hello world')

toggle () inherited overrides

Displays or hides the component