import VisibleElements from "@arcgis/core/widgets/UtilityNetworkAssociations/VisibleElements.js";const VisibleElements = await $arcgis.import("@arcgis/core/widgets/UtilityNetworkAssociations/VisibleElements.js");- Inheritance:
- VisibleElements→
Accessor
- 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 elementsconst 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
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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
The connectivity associations' line symbol settings that can be further configured.
maxAllowableAssociationsSlider
Property
- Type
- boolean
Indicates whether to display a slider that adjusts the UtilityNetworkAssociations.maxAllowableAssociations. Default is false.
- Default value
- false
structuralAttachmentAssociationsSettings
autocast
Property
The structural attachment associations' line symbol settings that can be further configured.