Skip to content
import VisibleElements from "@arcgis/core/widgets/UtilityNetworkAssociations/VisibleElements.js";
Inheritance:
VisibleElementsAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0

The visible elements that are displayed within the widget. This provides the ability to turn individual elements of the widget's display on/off.

Example
// Display the max allowable associations slider using visible elements
const unAssociations = new UtilityNetworkAssociations({
view: view,
utilityNetwork: utilityNetwork,
autoRefreshEnabled: true,
visibleElements: {
connectivityAssociationsSettings: {
arrowsToggle: false,
capSelect: false,
colorPicker: true,
stylePicker: true,
widthInput: true
},
maxAllowableAssociationsSlider: false,
structuralAttachmentAssociationsSettings: {
arrowsToggle: false,
capSelect: false,
colorPicker: true,
stylePicker: true,
widthInput: true
}
}
});

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.

connectivityAssociationsSettings

autocast Property
Type
VisibleElementsSettingsPane

The connectivity associations' line symbol settings that can be further configured.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

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

maxAllowableAssociationsSlider

Property
Type
boolean

Indicates whether to display a slider that adjusts the UtilityNetworkAssociations.maxAllowableAssociations. Default is false.

Default value
false

structuralAttachmentAssociationsSettings

autocast Property
Type
VisibleElementsSettingsPane

The structural attachment associations' line symbol settings that can be further configured.