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 <Text |
Since | Esri |
Inherits | Esri |
Public Functions
Text | |
virtual | ~ |
void | set |
Q | 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().