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.6
Since: Esri.ArcGISRuntime 100.0

Properties

Signals

Methods

  • void forEach(callback )
  • PopupField get(int index)

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:

RoleTypeDescription
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

countChanged()

Emitted when the count property of the model changes.


errorChanged()

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


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) {
    console.error(error.message);
}

PopupField get(int index)

Returns the PopupField at the specified index.



Feedback on this topic?