• Adds text to the info stack.

    Using the infoUrl, infoAudio, infoText, and infoVideo events, media and text can be shown on the Info tab. Multiple entries can be active simultaneously and are arranged in a stack.

    Parameters

    • json: {
          autoplay: boolean;
          removeExisting: boolean;
          text: string;
          type: string;
      } = ...
      • autoplay: boolean
      • removeExisting: boolean

        if true, remove all existing content from the info stack

      • text: string

        the text to display

      • type: string

        "text"

    Returns void

    Example

    {
    type: "text",
    text: "Depth units are in feet",
    removeExisting: true,
    }