new PSVNavBarCustomButton( navbar, config )

Description

Navigation bar custom button class

Parameters
Name Type Description
navbar module:components.PSVNavBar
config Object
Name Type Attributes Default Description
id string <optional>
className string <optional>
title string <optional>
content string <optional>
onClick function <optional>
enabled boolean <optional>
true
visible boolean <optional>
true

Members


<readonly> container :HTMLElement

Details
HTMLElement

<readonly> enabled :boolean

State of the button


<readonly> id :string

Unique identifier of the button


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


<readonly> psv :PhotoSphereViewer

Methods


<protected> create()

Creates the button


<protected> destroy()

Destroys the button


disable()

Disables the button


enable()

Enables the button


<protected> hide()

Hides the component


<protected> show()

Displays the component


toggleActive( [ active ] )

Changes the active state of the button

Parameters
Name Type Attributes Description
active boolean <optional>

forced state