Members
-
<readonly> container :HTMLElement
-
Details
-
<readonly> enabled :boolean
State of the button
-
Details
-
<readonly> id :string
Unique identifier of the button
-
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 button
-
Description
The button gets visible once the gyroscope API is ready
Details
-
<protected> destroy()
Destroys the button
-
Details
-
disable()
Disables the button
-
Details
-
enable()
Enables the button
-
Details
-
<protected> hide()
Hides the component
-
Details
-
<protected> show()
Displays the component
-
Details
-
supported() → {boolean|Promise.<boolean>}
Checks if the button can be displayed
-
Returns
Details
-
toggleActive( [ active ] )
Changes the active state of the button
-
Parameters
Name Type Attributes Description active
boolean <optional> forced state
Details