new PSVNavBar( psv )

Description

Navigation bar class

Parameters
Name Type Description
psv PhotoSphereViewer

Members


<readonly> container :HTMLElement

Details
HTMLElement

<readonly> items :Array.<module:components/buttons.PSVNavBarButton>

List of buttons of the navbar


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


<readonly> psv :PhotoSphereViewer


<readonly> visible :boolean

Visibility of the component

Methods


<protected> create()

Creates the component

Throws

when the configuration is incorrect


<protected> destroy()

Destroys the component


getNavbarButton( id [, silent ] ) → {module:components/buttons.PSVNavBarButton}

Returns a button by its identifier

Parameters
Name Type Attributes Default Description
id string
silent boolean <optional>
false

<protected> hide()

Hides the component


hideNavbar()

Hides the navbar


<protected> show()

Displays the component


showNavbar()

Shows the navbar


toggleNavbar( active )

Toggles the navbar

Parameters
Name Type Description
active boolean