Class: AbstractComponent

PSV.components.AbstractComponent

new PSV.components.AbstractComponent (parent, className) abstract

Base component class

Name Type Description
parent PSV.Viewer | PSV.components.AbstractComponent
className string

CSS class added to the component's container

Members

children Array.<PSV.components.AbstractComponent> packagereadonly

All child components

container HTMLElement readonly

prop Object protected

Internal properties

Properties:
Name Type Description
visible boolean

Visibility of the component

psv PSV.Viewer readonly

Reference to main controller

Methods

destroy () protected

Destroys the component

hide ()

Hides the component

isVisible ()boolean

Checks if the component is visible

Returns:
Type Description
boolean

refreshUi () package

Refresh UI

Must be be a very lightweight operation

show ()

Displays the component

toggle (visible)

Displays or hides the component

Name Type Description
visible boolean optional

forced state