Skip To Content ArcGIS for Developers Sign In Dashboard

Popup QML Type

The combination of a PopupDefinition and a GeoElement, which allows a visual representation of the GeoElement's attributes as well as the ability to edit them. More...

Import Statement: import Esri.ArcGISRuntime 100.8
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Properties

Signals

Methods

Detailed Description

A Popup can be instantiated with the following property combinations only: 1: A GeoElement 2: A GeoElement and a PopupDefinition

A PopupDefinition alone will not instantiate a Popup.

Use the Popup to create a PopupManager. The PopupManager can then be used in conjunction with the PopupView (from the ArcGIS Runtime Toolkit) for a visual representation of the Popup.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Property Documentation

evaluateExpressionsResults : list<PopupExpressionEvaluation>

Returns a list of results from an evaluate of expressions operation.

The results are asynchronously evaluated expressions, including Arcade FeatureSet functions, available at PopupDefinition::expressions. If there are no PopupDefinition::expressions then the result list will be empty.

Obtain the results once the evaluateExpressionsStatusChanged signal emits, and the evaluateExpressionsStatus is complete.

This QML property was introduced in Esri.ArcGISRuntime 100.8.


evaluateExpressionsStatus : Enums.TaskStatus

The status for the task of evaluating popup expressions.

This QML property was introduced in Esri.ArcGISRuntime 100.8.

See also Enums.TaskStatus.


geoElement : GeoElement

Returns the GeoElement of this Popup (read-only).

Note: To set the GeoElement that is used to create this Popup, use initGeoElement.


[default] initGeoElement : GeoElement

The GeoElement that should be used to create the Popup.

Note: To create a Popup, you can either provide only a GeoElement, or a GeoElement and a PopupDefinition.


[default] initPopupDefinition : PopupDefinition

The PopupDefinition that should be used to create the Popup.

Note: A PopupDefinition alone is not enough to create a Popup. You must also supply a GeoElement.


popupDefinition : PopupDefinition

Returns the PopupDefinition of this Popup (read-only).

Note: To set the PopupDefinition that is used to create this Popup, use initPopupDefinition.


symbol : Symbol

Returns the Symbol of this Popup (read-only).


title : string

Returns the title of this Popup (read-only).


Signal Documentation

evaluateExpressionsStatusChanged()

Emitted when the evaluateExpressionsStatus property changes.

This QML signal was introduced in Esri.ArcGISRuntime 100.8.


geoElementChanged()

Emitted when the geoElement property changes.


initGeoElementChanged()

Emitted when the initGeoElement property changes.


initPopupDefinitionChanged()

Emitted when the initPopupDefinition property changes.


popupDefinitionChanged()

Emitted when the popupDefinition property changes.


symbolChanged()

Emitted when the symbol property changes.


titleChanged()

Emitted when the title property changes.


Method Documentation

bool cancelTask(string taskId)

See also Cancelable.


string evaluateExpressions()

Asynchronously evaluates all expressions, including Arcade FeatureSet functions, available at PopupDefinition::expressions. This method must be called before displaying the popup information in a UI so you can use synchronous methods Popup::formattedValue() and PopupManager::substitute() to get the formatted string representation. If there are no PopupDefinition::expressions then the result list will be empty.

The PopupExpression may be used in the PopupDefinition::fields, PopupDefinition::media, PopupDefinition::title and PopupDefinition::description.

This QML method was introduced in Esri.ArcGISRuntime 100.8.


string formattedValue(PopupField popupField)

Returns a string from a popupField that you can use in a display for the Popup's field value.

The string will have the proper formatting based on the field type and PopupField configuration. Dates/times are returned in the local timezone. This synchronous method doesn't support Arcade expressions with FeatureSet.



Feedback on this topic?