new PSVNotification( psv )

Description

Notification class

Parameters
Name Type Description
psv PhotoSphereViewer

Members


<readonly> container :HTMLElement

Details
HTMLElement

<readonly> parent :PhotoSphereViewer|module:components.PSVComponent


<readonly> psv :PhotoSphereViewer


<readonly> visible :boolean

Visibility of the component

Methods


<protected> create()

Creates the component


<protected> destroy()

Destroys the component


<protected> hide()

Hides the component


hideNotification()

Hides the notification

Fires

Trigered when the notification is hidden


isNotificationVisible() → {boolean}

Checks if the notification is visible

Returns

<protected> show()

Displays the component


showNotification( config )

Displays a notification on the viewer

Parameters
Name Type Description
config Object | string
Name Type Attributes Description
content string
timeout int <optional>
Examples
viewer.showNotification({ content: 'Hello world', timeout: 5000})
			viewer.showNotification('Hello world')

Events


hide-notification

Trigered when the notification is hidden


show-notification

Trigered when the notification is shown