Skip to content

TextPopupElement Class

  • TextPopupElement
  • class Esri::ArcGISRuntime::TextPopupElement

    A pop-up element that displays plain text, fields, and some of the HTML tags of a GeoElement in a pop-up. More...

    Header: #include <TextPopupElement>
    Since: Esri::ArcGISRuntime 100.14
    Inherits: Esri::ArcGISRuntime::PopupElement

    Public Functions

    TextPopupElement(const QString &text, QObject *parent = nullptr)
    virtual ~TextPopupElement() override
    void setText(const QString &text)
    QString text() const

    Detailed Description

    The text returned by this popup element may contain HTML content. In some cases, the HTML may be relatively simple and you could parse this code directly. However, we recommend that you use a platform-specific view to incorporate the HTML content seamlessly into your app's UI. For example, if you are building an iOS app you could use the WKWebView object to display the HTML content.

    See also PopupElementType.

    Member Function Documentation

    [explicit] TextPopupElement::TextPopupElement(const QString &text, QObject *parent = nullptr)

    Creates a new text pop-up element with the given text.

    • text - This is string value indicating the text to be displayed within the popupElement. If no `text` property is provided, the popupElement will display whatever is specified in the PopupDefinition::description property.
    • parent - The optional parent QObject.

    [override virtual noexcept] TextPopupElement::~TextPopupElement()

    Destructor.

    void TextPopupElement::setText(const QString &text)

    Sets the text to text.

    See also text.

    QString TextPopupElement::text() const

    Returns the text to display in the pop-up.

    See also setText().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.