Class: Panel

new Panel (psv)

Panel class

Name Type Description
psv PSV.Viewer

Extends

Members

children Array.<PSV.components.AbstractComponent> packagereadonly inherited overrides

All child components

container HTMLElement readonly inherited overrides

prop Object protected inherited overrides

Internal properties

Properties:
Name Type Description
contentId string
mouseX number
mouseY number
mousedown boolean
clickHandler function

Reference to main controller

Methods

destroy () protected inherited overrides

Destroys the component

hide (id) overrides

Hides the panel

Name Type Description
id string optional
Fires:
  • PSV.event:close-panel

isVisible (id)boolean inherited overrides

Check if the component is visible

Name Type Description
id string optional
Returns:
Type Description
boolean

refreshUi () package inherited overrides

Refresh UI

Must be be a very lightweight operation

show (config) overrides

Shows the panel

Name Type Description
config Object
Name Type Default Description
id string optional
content string
noMargin boolean false optional
clickHandler function optional
Fires:
  • PSV.event:open-panel

toggle () inherited overrides

Displays or hides the component