Members
-
<readonly> container :HTMLElement
-
Details
-
<readonly> parent :PhotoSphereViewer|module:components.PSVComponent
-
Details
-
<readonly> psv :PhotoSphereViewer
-
Details
-
<readonly> visible :boolean
Visibility of the component
-
Details
Methods
-
<protected> create()
Creates the component
-
Details
-
<protected> destroy()
Destroys the component
-
Details
-
<protected> hide()
Hides the component
-
Details
-
hideTooltip()
Hides the tooltip
-
Fires
Details
-
isTooltipVisible() → {boolean}
Checks if the tooltip is visible
-
Returns
Details
-
<protected> show()
Displays the component
-
Details
-
showTooltip( config )
Displays a tooltip on the viewer
-
Parameters
Name Type Description config
Object Name Type Attributes Default Description content
string HTML content of the tootlip
top
int Position of the tip of the arrow of the tooltip, in pixels
left
int Position of the tip of the arrow of the tooltip, in pixels
position
string <optional> 'top center' Tooltip position toward it's arrow tip. Accepted values are combinations of
top
,center
,bottom
andleft
,center
,right
className
string <optional> Additional CSS class added to the tooltip
box
Object <optional> Used when displaying a tooltip on a marker
Name Type Attributes Default Description width
int <optional> 0 height
int <optional> 0 Examples
viewer.showTooltip({ content: 'Hello world', top: 200, left: 450, position: 'center bottom'})
Fires
Throws
Details
Events
-
hide-tooltip
Trigered when the tooltip is hidden
-
Details
-
show-tooltip
Trigered when the tooltip is shown
-
Details