Panel component
Name | Type | Description |
---|---|---|
psv |
PSV.Viewer |
Extends
Members
-
children Array.<PSV.components.AbstractComponent> packagereadonly inherited overrides
All child components
-
-
-
parent PSV.Viewer | PSV.components.AbstractComponent readonly inherited overrides
-
-
Internal properties
-
Properties:
Name Type Description contentId
string mouseX
number mouseY
number mousedown
boolean clickHandler
function keyHandler
function -
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
Methods
-
Destroys the component
-
-
hide (id) overrides
Hides the panel
-
Name Type Description id
string optional Fires:
-
Checks if the component is visible
-
Name Type Description id
string optional Returns:
Type Description boolean -
Refresh UI
-
Must be be a very lightweight operation
-
show (config) overrides
Shows the panel
-
Name Type Description config
string | Object Name Type Default Description id
string optional unique identifier to use with "hide" and to store the user desired width
content
string HTML content of the panel
noMargin
boolean false optional remove the default margins
width
string optional initial width
clickHandler
function optional called when the user clicks inside the panel or presses the Enter key while an element focused
Fires:
-
This method is not supported
-
Name Type Description visible
boolean optional forced state
Throws:
-
always
- Type
- PSV.PSVError
-