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 configObject Name Type Attributes Default Description contentstring HTML content of the tootlip
topint Position of the tip of the arrow of the tooltip, in pixels
leftint Position of the tip of the arrow of the tooltip, in pixels
positionstring <optional> 'top center' Tooltip position toward it's arrow tip. Accepted values are combinations of
top,center,bottomandleft,center,rightclassNamestring <optional> Additional CSS class added to the tooltip
boxObject <optional> Used when displaying a tooltip on a marker
Name Type Attributes Default Description widthint <optional> 0 heightint <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