A list model used for viewing and editing attributes in a Popup. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Properties
Signals
Methods
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:
Role | Type | Description |
---|---|---|
fieldName | string | The field name for the PopupField. |
fieldValue | var | The value for the PopupField. |
popupDateFormat | Enums.PopupDateFormat | The PopupDateFormat for the PopupField. |
decimalPlaces | int | The number of decimal places to display for numerical fields. |
useThousandsSeparator | bool | If the thousands separator should be used. |
editable | bool | Whether the PopupField is editable. |
visible | bool | Whether the PopupField is visible (obsolete). Warning: This role is obsolete. Use attributeVisible instead. |
nullable | bool | Whether the PopupField is nullable. |
label | string | The PopupField label. |
popupStringFieldOption | Enums.PopupStringFieldOption | The PopupStringFieldOption for the PopupField. |
tooltip | string | The tooltip for the PopupField. |
formattedValue | string | The formatted value for the PopupField. |
fieldType | Enums.FieldType | The FieldType for the PopupField. |
maxLength | int | The maxmimum length for the PopupField. |
featureType | bool | Whether the PopupField is a feature type. |
validationErrorText | string | The validation error text if there is any. |
rangeDomainValidationText | string | The range domain validation text if applicable. |
attributeVisible | bool | Whether the PopupField is visible (since Esri.ArcGISRuntime 100.1). |
Property Documentation
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
Receives a callback function to execute for each popupField in the model.
The callback function can take 0 to 3 optional arguments, in order:
- element Current PopupField.
- index Current index in array.
- array Reference to PopupAttributeListModel.
Returns undefined if no error occurred, and an error message otherwise.
const error = PopupAttributeListModel.forEach(function(element, index, array) { ... }); if (error) { console.error(error.message); }
PopupField get(int index) |
Returns the PopupField
at the specified index.