A list model used for viewing and editing attributes in a Popup. More...
Import Statement | import Esri. |
Since | Esri. |
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 |
---|---|---|
field | string | The field name for the Popup |
field | var | The value for the Popup |
popup | Enums. | The Popup |
decimal | int | The number of decimal places to display for numerical fields. |
use | bool | If the thousands separator should be used. |
editable | bool | Whether the Popup |
visible | bool | Whether the Popup Warning |
nullable | bool | Whether the Popup |
label | string | The Popup |
popup | Enums. | The Popup |
tooltip | string | The tooltip for the Popup |
formatted | string | The formatted value for the Popup |
field | Enums. | The Field |
max | int | The maxmimum length for the Popup |
feature | bool | Whether the Popup |
validation | string | The validation error text if there is any. |
range | string | The range domain validation text if applicable. |
attribute | bool | Whether the Popup |
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); }
Popup |
Returns the PopupField
at the specified index.