A list of Geotrigger conditions. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.14 |
Properties
Signals
- countChanged()
- errorChanged()
- itemAdded()
- itemRemoved()
Methods
- void append(Geotrigger geotrigger)
- void clear()
- bool contains(Geotrigger geotrigger)
- error forEach(callback)
- Analysis get(int index)
- int indexOf(Geotrigger geotrigger)
- void insert(int index, Geotrigger geotrigger)
- void move(int from, int to)
- void remove(int index, int count)
- void removeOne(Geotrigger geotrigger)
Detailed Description
The model returns data for the following roles:
Role | Type | Description |
---|---|---|
geotriggerName | string | The geotrigger's name. |
geotriggerId | string | The geotrigger's ID. |
geotriggerType | Enums.GeotriggerType | The type of geotrigger. |
geotriggerRequestedActions | list<string> | The list of requested actions for the geotrigger. |
Property Documentation
error : Error |
Returns the last error that occurred on the model (read-only).
Signal Documentation
Emitted when the rowCount property 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
.
Emitted when a new item is added to the list model.
Note: The corresponding handler is onItemAdded
.
This signal was introduced in Esri.ArcGISRuntime 100.15.
Emitted when a item is removed from the list model.
Note: The corresponding handler is onItemRemoved
.
This signal was introduced in Esri.ArcGISRuntime 100.15.
Method Documentation
void append(Geotrigger geotrigger) |
Appends a geotrigger to the geotrigger list model.
bool contains(Geotrigger geotrigger) |
Returns true
if the list model contains the specified geotrigger.
Receives a callback function to execute for each geotrigger in the model.
The callback function can take from 0 to 3 optional arguments, in order:
- element Current geotrigger.
- index Current index in array.
- array Reference to GeotriggerListModel.
Returns undefined if no error occurred, and an error message otherwise.
const error = geotriggerListModel.forEach(function(element, index, array) { ... }); if (error) { console.error(error.message); }
Analysis get(int index) |
Returns the Geotrigger
at the specified index.
int indexOf(Geotrigger geotrigger) |
Returns the index of the geotrigger specified.
void insert(int index, Geotrigger geotrigger) |
Inserts a geotrigger at a specified index in the list.
Moves one geotrigger from an index in the list model to a different index.
Removes one or more objects starting at the specified index.
- index Index of first object to remove.
- count Number of objects to remove. This parameter defaults to
1
.
No analysis is removed if the specified index is out-of-range.
void removeOne(Geotrigger geotrigger) |
Removes the specified geotrigger (geotrigger) from the list model.