require(["esri/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel"], (UtilityNetworkValidateTopologyViewModel) => { /* code goes here */ });
import UtilityNetworkValidateTopologyViewModel from "@arcgis/core/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js";
esri/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel
Provides the logic for the UtilityNetworkValidateTopology widget.
Constructors
-
new UtilityNetworkValidateTopologyViewModel(properties)
-
Parameterproperties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
String | If the validation process fails, this property returns an error message. more details | UtilityNetworkValidateTopologyViewModel | |
String | Specifies the extent of the validation. more details | UtilityNetworkValidateTopologyViewModel | |
Collection<string> | If an error occurs during during validation a loadError wil be displayed. more details | UtilityNetworkValidateTopologyViewModel | |
String | The view model's state. more details | UtilityNetworkValidateTopologyViewModel | |
UtilityNetwork | Determines the utility network to use. more details | UtilityNetworkValidateTopologyViewModel | |
MapView | The view from which the widget will operate. more details | UtilityNetworkValidateTopologyViewModel |
Property Details
-
executionError Stringreadonly
-
If the validation process fails, this property returns an error message. Otherwise, it is empty.
-
extentToValidate String
-
Specifies the extent of the validation.
Possible Values:"current"|"entire"
- Default Value:current
-
loadErrors Collection<string>
-
If an error occurs during during validation a loadError wil be displayed.
-
state Stringreadonly
-
The view model's state.
Possible Values:"disabled"|"executing"|"failed"|"loading"|"ready"|"success"
- Default Value:ready
-
utilityNetwork UtilityNetwork
-
Determines the utility network to use.
-
view MapView
-
The view from which the widget will operate.
Method Overview
Name | Return Type | Summary | Class |
---|---|---|---|
Validates the network topology of the utility network. more details | UtilityNetworkValidateTopologyViewModel |
Method Details
-
validateTopology()
-
Validates the network topology of the utility network.
- See also