Navigation bar component
Name | Type | Description |
---|---|---|
psv |
PSV.Viewer |
Extends
Members
-
children Array.<PSV.buttons.AbstractButton> packagereadonly inherited overrides
List of buttons of the navbar
-
-
-
parent PSV.Viewer | PSV.components.AbstractComponent readonly inherited overrides
-
-
Internal properties
-
Properties:
Name Type Description visible
boolean Visibility of the component
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
Methods
-
Destroys the component
-
-
getButton (id, warnNotFound)PSV.buttons.AbstractButton
Returns a button by its identifier
-
Name Type Default Description id
string warnNotFound
boolean true optional Returns:
Type Description PSV.buttons.AbstractButton -
hide () overrides
Hides the navbar
-
-
Checks if the component is visible
-
Returns:
Type Description boolean -
Refresh UI
-
Must be be a very lightweight operation
-
Change the buttons visible on the navbar
-
Name Type Description buttons
string | Array.<(string|PSV.NavbarCustomButton)> Throws:
-
when a button is unknown
- Type
- PSV.PSVError
-
-
Sets the bar caption
-
Name Type Description html
string -
show () overrides
Shows the navbar
-
-
Displays or hides the component
-
Name Type Description visible
boolean optional forced state