Creates an instance of PanelInstance.
Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
Readonly
alertWhether the panel expands to fill empty space.
Readonly
idID of this panel.
Specifies which panel screen to display and optional props to be passed to the screen panel component.
Readonly
screensA collection of panel screens to be displayed inside the panel.
The style object applied to the panel.
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
.
Checks if this panel is the leftmost visible and not-teleported panel.
Checks if the panel is open or not.
Checks if this panel is pinned or not.
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.
true if the panel is currently visible
Returns the width of the panel in pixels or undefined if not set.
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> }
.
A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.
Export
APIScope