RAMP4 - v4.21.0
    Preparing search index...

    Class PanelAPI

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

    APIScope

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    APIScope

    panelStore: Store<
        "panel",
        Pick<
            PanelStore,
            | "pinned"
            | "priority"
            | "stackWidth"
            | "remWidth"
            | "mobileView"
            | "reorderable"
            | "items"
            | "regPromises"
            | "orderedItems"
            | "teleported"
            | "visible"
            | "opacity",
        >,
        Pick<PanelStore, "getRemainingWidth">,
        Pick<
            PanelStore,
            | "open"
            | "close"
            | "move"
            | "remove"
            | "getVisible"
            | "getRegPromises"
            | "openPanel"
            | "closePanel"
            | "movePanel"
            | "removePanel"
            | "setOpacity"
            | "setStackWidth"
            | "setMobileView"
            | "updateVisible"
            | "registerPanel"
            | "addRegPromise",
        >,
    > = ...

    Accessors

    • get $element(): App<Element>

      Returns App<Element>

    • get $vApp(): ComponentPublicInstance

      The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

      Returns ComponentPublicInstance

      APIScope

    Methods

    • Returns the panel ids of all currently registered panels

      Returns string[]

      PanelAPI

    • Expands/collapses the expand state of the panel. Toggles whether the panel expands if no expand value is given.

      Parameters

      • value: string | PanelInstance
      • Optionalexpand: boolean

        Optional. Whether the panel should expand, toggles the value if not set

      Returns PanelInstance | undefined

      the panel instance if the panel is currently registered, undefined otherwise.

      PanelAPI

    • Provides a promise that resolves when the panel(s) have finished registration.

      Type Parameters

      • T extends string | string[]

      Parameters

      • panelId: T

        the panel ID(s) for which the promise is requested

      Returns Promise<T extends string ? PanelInstance : PanelInstance[]>

      PanelAPI

    • Minimizes the panel specified, mechanically the same as closing however it does not emit the close event so that temporary appbar buttons stay.

      Parameters

      Returns PanelInstance | undefined

      the panel instance if the panel is currently registered, undefined otherwise.

      PanelAPI

    • Moves the specifed visible panel to the left or right.

      Parameters

      • value: string | PanelInstance
      • direction: PanelDirection

        the direction of movement, either "left" or "right".

      Returns PanelInstance | undefined

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

      Parameters

      • value: string | PanelInstance | PanelInstancePath

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

      Returns PanelInstance | undefined

      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.

      Parameters

      Returns PanelInstance | undefined

      the panel instance if the panel is currently registered, undefined otherwise.

      PanelAPI

    • Registers a new panel containing a screen of HTML content and returns the PanelInstance

      Parameters

      • htmlPanel: HTMLPanelInstance

        a HTMLPanelInstance object corresponding to the new html panel

      Returns PanelInstance

      PanelAPI

    • Sets the styles of the specified panel by using a provided CSS styles object.

      Parameters

      • value: string | PanelInstance
      • style: object
      • Optionalreplace: boolean = false

        merge with existing styles if false; replace if true

      Returns PanelInstance | undefined

      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.

      Parameters

      Returns PanelInstance | undefined

      the panel instance if the panel is currently registered and the specified screen exists, undefined otherwise.

      PanelAPI

    • Updates the content of a specific HTML-based screen of a panel, using HTML content

      Parameters

      • panel: string | PanelInstance

        The PanelInstance object, or its respective id, that corresponds to the panel whose content is to be updated.

      • html: HTMLScreen | { [key: string]: string }

        keyed language object containing HTML content for each language, represented as an HTMLElement object or a string.

      • OptionalscreenId: string

        id of the screen to be updated. If not provided, it will update the first screen in the panel

      Returns void

      PanelAPI