Skip to content
import UtilityNetworkValidateTopologyViewModel from "@arcgis/core/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js";
Inheritance:
UtilityNetworkValidateTopologyViewModelAccessor
Since
ArcGIS Maps SDK for JavaScript 4.27

Provides the logic for the UtilityNetworkValidateTopology widget and component.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

executionError

readonly Property
Type
string

If the validation process fails, this property returns an error message. Otherwise, it is empty.

Default value
""

extentToValidate

Property
Type
UtilityNetworkValidateTopologyViewModelExtentOption

Specifies the extent of the validation.

Default value
"current"

loadErrors

autocast Property
Type
Collection<string>

If an error occurs during during validation a loadError wil be displayed.

state

readonly Property
Type
UtilityNetworkValidateTopologyViewModelState

The view model's state.

Default value
"ready"

utilityNetwork

Property
Type
UtilityNetwork | null | undefined

Determines the utility network to use.

view

Property
Type
MapView | null | undefined

The view from which the widget will operate.

Methods

MethodSignatureClass
validateTopology(): Promise<void>

validateTopology

Method
Signature
validateTopology (): Promise<void>

Validates the network topology of the utility network.

See also
Returns
Promise<void>

Type definitions

UtilityNetworkValidateTopologyViewModelExtentOption

Type definition
Type
"current" | "entire"

UtilityNetworkValidateTopologyViewModelState

Type definition
Type
"loading" | "ready" | "executing" | "success" | "failed" | "disabled"