Creates an instance of APIScope.
APIScope
Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
APIScope
The instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
APIScope
Returns an array of open PanelInstance
objects.
PanelAPI
Returns the currently pinned panel instance, if exists.
PanelAPI
Returns an array of visible PanelInstance
object.
This is not every open panel, only the ones currently visible to the user.
PanelAPI
Closes the panel specified.
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Expands/collapses the expand state of the panel. Toggles whether the panel expands if no expand value is given.
Optional
expand: booleanOptional. Whether the panel should expand, toggles the value if not set
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Finds and returns a panel with the id specified.
PanelAPI
Minimizes the panel specified, mechanically the same as closing however it does not emit the close event so that temporary appbar buttons stay.
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Moves the specifed visible panel to the left or right.
the direction of movement, either "left" or "right".
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Opens a registered panel in the panel stack.
rInstance.panel.open('panel-id')
-- opens the 'panel-id' panel on the first screen in the setrInstance.panel.open(<PanelInstance>)
-- opens the provided PanelInstance
object on the first screen in the setrInstance.panel.open({ id: 'panel-id', screen: 'screen-id' })
-- opens the 'panel-id' panel on the 'screen-id' screenrInstance.panel.open({ id: 'panel-id', screen: 'screen-id', props: {... } })
-- opens the 'panel-id' panel on the 'screen-id' screen passing supplied props
to ita panel id, a PanelInstance
object or an object of the form { id: <panel-id>, screen: <id>, props: <object> }
.
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Pin/unpin/toggle (if no value provided) pin status of the provided panel. When pinning, automatically unpins any previous pinned panel if exists.
Optional
pin: booleanthe panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Registers a provided panel object and returns the resulting PanelInstance
objects.
When the panel is registered, all its screens are added to the Vue as components right away.
a PanelConfig/id pair in the form of { id: string, config: PanelConfig }
Optional
options: PanelRegistrationOptionsPanelAPI
Registers a set of provided panel objects and returns the resulting PanelInstance
object set.
When the panel is registered, all its screens are added to the Vue as components right away.
a set of PanelConfig objects in the form of { [name: string]: PanelConfig }
where keys assumed to be ids
Optional
options: PanelRegistrationOptionsa set of options that will apply to all the panel in the set
PanelAPI
Removes a panel instance
PanelAPI
Sets the styles of the specified panel by using a provided CSS styles object.
Optional
replace: boolean = falsemerge with existing styles if false
; replace if true
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Sets route to the specified screen id and pass props to the panel screen components.
the panel instance if the panel is currently registered and the specified screen exists, undefined otherwise.
PanelAPI
Toggle panel.
Optional
value: string | PanelInstance | PanelInstancePathOptional
toggle: booleanOptional param. True forces a panel open, false forces the panel to close.
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Toggle panel's minimized state
Optional
value: string | PanelInstance | PanelInstancePathOptional
toggle: booleanOptional param. True forces a panel open, false forces the panel to minimize.
the panel instance if the panel is currently registered, undefined otherwise.
PanelAPI
Generated using TypeDoc
A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.
Export