A base class for anything requiring access to the InstanceApi and instance of Vue app controlled by it.

Export

Hierarchy

Constructors

Properties

The instance of RampMap API scoped to a single Vue R4MP application.

Memberof

APIScope

alertName: string
button: any
controls: any
expanded: boolean

Whether the panel expands to fill empty space.

Memberof

PanelInstance

id: string

ID of this panel.

Memberof

PanelInstance

loadedScreens: string[] = []

A list of screen component ids which are loaded and ready to be rendered.

Memberof

PanelInstance

route: PanelConfigRoute

Specifies which panel screen to display and optional props to be passed to the screen panel component.

Memberof

PanelConfig

screens: PanelConfigScreens

A collection of panel screens to be displayed inside the panel.

Memberof

PanelInstance

style: PanelConfigStyle

The style object applied to the panel.

Memberof

PanelInstance

Accessors

  • get $element(): App<Element>
  • Returns App<Element>

  • get $vApp(): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Memberof

    APIScope

    Returns ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

  • get isLeftMostPanel(): boolean
  • Checks if this panel is the leftmost visible panel.

    Memberof

    PanelInstance

    Returns boolean

  • get isRightMostPanel(): boolean
  • Checks if this panel is the rightmost visible panel.

    Memberof

    PanelInstance

    Returns boolean

  • get width(): undefined | number
  • Returns the width of the panel in pixels or undefined if not set.

    Memberof

    PanelInstance

    Returns undefined | number

Methods

  • Expands/collapses/toggles the expand state of the panel. Panels set to expand fill empty space. This is a proxy to InstanceAPI.panel.expand(...).

    Memberof

    PanelInstance

    Parameters

    • Optional expand: boolean

      Optional. Whether the panel should expand. Toggles if no value is given.

    Returns PanelInstance

  • Checks if a given screen component id is already loaded and ready to render.

    Memberof

    PanelInstance

    Parameters

    • id: string

    Returns boolean

  • 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 set
    • somePanel.open('screen-id') -- opens the panel on the 'screen-id' screen
    • somePanel.open({ screen: 'screen-id', props: {... } }) -- opens the panel on the 'screen-id' screen passing supplied props to it

    Memberof

    PanelInstance

    Parameters

    • Optional value: string | {
          props?: object;
          screen: string;
      }

      a screen id, or an object of the form { screen: <id>, props: <object> }.

    Returns 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(...).

    Memberof

    PanelInstance

    Parameters

    • Optional value: boolean

    Returns PanelInstance

  • 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).

    Memberof

    PanelInstance

    Parameters

    • id: string

    Returns void

  • Sets the styles of the specified panel by using a provided CSS styles object. This is a proxy to InstanceAPI.panel.setStyles(...).

    Memberof

    PanelInstance

    Parameters

    • style: object
    • Optional replace: boolean = false

    Returns PanelInstance

  • Sets route to the specified screen id and pass props to the panel screen components. This is a proxy to InstanceAPI.panel.route(...).

    Memberof

    PanelInstance

    Parameters

    • value: string | PanelConfigRoute

    Returns PanelInstance

  • Toggle panel. This is a proxy to InstanceAPI.panel.toggle(...).

    Memberof

    PanelInstance

    Parameters

    • Optional value: boolean | {
          props?: object;
          screen: string;
          toggle?: boolean;
      }

    Returns PanelInstance

  • Toggle panel's minimize state. This is a proxy to InstanceAPI.panel.toggleMinimize(...).

    Memberof

    PanelInstance

    Parameters

    • Optional value: boolean | {
          props?: object;
          screen: string;
          toggle?: boolean;
      }

    Returns PanelInstance

Generated using TypeDoc