Skip To Content ArcGIS for Developers Sign In Dashboard

PopupAttributeListModel QML Type

A list model used for viewing and editing attributes in a Popup. More...

Import Statement: import Esri.ArcGISRuntime 100.9
Since: Esri.ArcGISRuntime 100.0




Detailed Description

Obtain a PopupAttributeListModel from the PopupManager.

Note: You cannot declare or create a component of this type in QML code.

The model returns data for the following roles:

fieldNamestringThe field name for the PopupField.
fieldValuevarThe value for the PopupField.
popupDateFormatEnums.PopupDateFormatThe PopupDateFormat for the PopupField.
decimalPlacesintThe number of decimal places to display for numerical fields.
useThousandsSeparatorboolIf the thousands separator should be used.
editableboolWhether the PopupField is editable.
visibleboolWhether the PopupField is visible (obsolete).

Warning: This role is obsolete. Use attributeVisible instead.

nullableboolWhether the PopupField is nullable.
labelstringThe PopupField label.
popupStringFieldOptionEnums.PopupStringFieldOptionThe PopupStringFieldOption for the PopupField.
tooltipstringThe tooltip for the PopupField.
formattedValuestringThe formatted value for the PopupField.
fieldTypeEnums.FieldTypeThe FieldType for the PopupField.
maxLengthintThe maxmimum length for the PopupField.
featureTypeboolWhether the PopupField is a feature type.
validationErrorTextstringThe validation error text if there is any.
rangeDomainValidationTextstringThe range domain validation text if applicable.
attributeVisibleboolWhether the PopupField is visible (since Esri.ArcGISRuntime 100.1).

Property Documentation

count : int

Returns the number of objects in the model (read-only).

error : Error

Returns the Error object (read-only).

Signal Documentation


Emitted when the count property of the model changes.

Note: The corresponding handler is onCountChanged.


Emitted when the error property changes, which can indicate that an error occurred.

Note: The corresponding handler is onErrorChanged.

Method Documentation

void forEach(callback)

Receives a callback function to execute for each popupField in the model.

The callback function can take 0 to 3 optional arguments, in order:

Returns undefined if no error occurred, and an error message otherwise.

var error = PopupAttributeListModel.forEach(function(element, index, array) {
if (error) {

PopupField get(index)

Returns the PopupField at the specified index.

Feedback on this topic?