Creates an instance of PanelInstance.
PanelInstance
Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
APIScope
Readonly
alertWhether the panel expands to fill empty space.
PanelInstance
Readonly
idID of this panel.
PanelInstance
Private
Readonly
loadedA list of screen component ids which are loaded and ready to be rendered.
PanelInstance
Specifies which panel screen to display and optional props to be passed to the screen panel component.
PanelConfig
Readonly
screensA collection of panel screens to be displayed inside the panel.
PanelInstance
The style object applied to the panel.
PanelInstance
Optional
teleportThe config for the element to render the panel screen in (instead of its usual spot in the panel stack).
The instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
APIScope
Checks if this panel is the leftmost visible and not-teleported panel.
PanelInstance
Checks if the panel is open or not.
PanelInstance
Checks if this panel is pinned or not.
PanelInstance
Checks if this panel is the rightmost visible and non-teleported panel. Note that a traditional for each loop is used due to reverse traversal of the array.
PanelInstance
true iff the panel is currently visible
PanelInstance
Returns the width of the panel in pixels or undefined if not set.
PanelInstance
Close this panel.
This is a proxy to InstanceAPI.panel.close(...)
.
PanelInstance
Expands/collapses/toggles the expand state of the panel. Panels set to expand fill empty space.
This is a proxy to InstanceAPI.panel.expand(...)
.
Optional
expand: booleanOptional. Whether the panel should expand. Toggles if no value is given.
PanelInstance
Minimize this panel.
This is a proxy to InstanceAPI.panel.minimize(...)
.
PanelInstance
Move this panel left or right in the stack.
This is a proxy to InstanceAPI.panel.move(...)
.
PanelInstance
Opens a registered panel in the panel stack.
This is a proxy to InstanceAPI.panel.open(...)
.
somePanel.open()
-- opens the panel on the first screen in the setsomePanel.open('screen-id')
-- opens the panel on the 'screen-id' screensomePanel.open({ screen: 'screen-id', props: {... } })
-- opens the panel on the 'screen-id' screen passing supplied props
to itOptional
value: string | { a screen id, or an object of the form { screen: <id>, props: <object> }
.
PanelInstance
Pin/unpin/toggle (if no value provided) pin status of this panel. When pinning, automatically unpins any previous pinned panel if exists.
This is a proxy to InstanceAPI.panel.pin(...)
.
Optional
value: booleanPanelInstance
Loads and register panel screen components. This function should be called just before the screen is to be shown; this will avoid needlessly loading components upfront (sometimes certain screens might not get used at all).
PanelInstance
Remove this panel.
This is a proxy to InstanceAPI.panel.remove(...)
.
PanelInstance
Sets the styles of the specified panel by using a provided CSS styles object.
This is a proxy to InstanceAPI.panel.setStyles(...)
.
Optional
replace: boolean = falsePanelInstance
Sets route to the specified screen id and pass props to the panel screen components.
This is a proxy to InstanceAPI.panel.route(...)
.
PanelInstance
Toggle panel.
This is a proxy to InstanceAPI.panel.toggle(...)
.
Optional
value: boolean | { PanelInstance
Toggle panel's minimize state.
This is a proxy to InstanceAPI.panel.toggleMinimize(...)
.
Optional
value: boolean | { PanelInstance
Generated using TypeDoc
A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.
Export