A list model storing a list of ArcGISFeature objects. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.6 |
Properties
Signals
Methods
- bool contains(ArcGISFeature feature)
- error forEach(callback)
- ArcGISFeature get(int index)
- int indexOf(ArcGISFeature feature)
Detailed Description
Note: You cannot declare or create a component of this type in QML code.
See also UtilityNetwork.
Property Documentation
features : list<ArcGISFeature> |
The collection of ArcGISFeature objects as a JavaScript array (read-only).
Use this method to get a list of feature for use with FeatureLayer::selectFeatures.
Signal Documentation
Emitted when the count property of the model changes.
Note: The corresponding handler is onCountChanged
.
Emitted when the features property of the model changes.
Note: The corresponding handler is onFeaturesChanged
.
Method Documentation
bool contains(ArcGISFeature feature) |
Returns true
if the list model contains the specified feature.
Receives a callback function to execute for each ArcGISFeature in the model.
The callback function can take 0 to 3 optional arguments, in order:
- element - Current ArcGISFeature
- index - Current index in array
- array - Reference to ArcGISFeatureListModel
Returns undefined if no error occurred, and an error message otherwise.
const error = ArcGISFeatureListModel.forEach(function(element, index, array) { ... }); if (error) { console.error(error.message); }
ArcGISFeature get(int index) |
Returns the ArcGISFeature at the specified index.
int indexOf(ArcGISFeature feature) |
Returns the index of a specific preplanned feature from the list model.