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

APIScope

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

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

APIScope

notificationStore: Store<"notification", _UnwrapAll<Pick<NotificationStore, "notificationStack" | "groups">>, Pick<NotificationStore, "notificationNumber">, Pick<NotificationStore,
    | "showNotification"
    | "removeNotification"
    | "registerGroup"
    | "addToGroup"
    | "clearAll"
    | "removeGroup">>

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

  • Adds a notification group, which can be used to hold multiple messages.

    Parameters

    • id: string

      The id for the group

    • type: NotificationType

      The type of notification the group will hold, 'error' 'warning' or 'info'

    • message: string

      The "main" message for the notification, describing the grouped messages

    Returns NotificationGroup

    NotificationAPI

  • Shows a notification with the type and message provided

    Parameters

    • type: NotificationType

      The type of notification to display

    • message: string

      The message to display in the notification

    Returns void

    NotificationAPI