Skip to content
import VisibleElements from "@arcgis/core/widgets/Editor/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
// This removes the feature enabled snapping toggle and the layerlist.
editor.visibleElements = {
snappingControlsElements: {
featureEnabledToggle: false,
layerList: false
}
}

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.

createFeaturesSection

Property
Type
boolean

Indicates whether to display the "create features" section of the widget in the default view.

Default value
true

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.

editFeaturesSection

Property
Type
boolean

Indicates whether to display the "edit features" section of the widget in the default view.

Default value
true

flow

Property
Type
boolean

Determines whether the widget should be shown within its built-in flow component or if the flow component should be excluded. The widget will be displayed within its original flow component if set to true. The flow component will be omitted from the widget if set to false. To place the widget into an existing Calcite flow component, set this property to false.

Default value
true

labelsToggle

Property
Type
boolean

Indicates whether to display the sketch labels toggle. Default value is true.

Default value
true

mergeButton

Property
Type
boolean

Indicates whether to display the "Merge features" button in contexts where that command is available. Default value is true.

Default value
true

settingsMenu

Property
Type
boolean

Indicates whether to display the settings menu. This menu contains the snapping and tooltips settings.

Default value
true

sketch

Property
Type
boolean

Determines whether the widget should display an embedded Sketch widget to provide graphical controls for choosing drawing tools.

Default value
true

snappingControls

Property
Type
boolean

Indicates whether to display the SnappingControls widget. Default is true.

Default value
true

snappingControlsElements

autocast Property
Type
SnappingControlsVisibleElements

The available SnappingControls elements within the widget.

splitButton

Property
Type
boolean

Indicates whether to display the "Split" button in contexts where that command is available. Default value is true.

Default value
true

tooltipsToggle

Property
Type
boolean

Indicates whether to display the tooltips toggle. Default value is true.

Default value
true

undoRedoButtons

Property
Type
boolean

Indicates whether to display undo/redo buttons in the embedded Sketch toolbar. Default value is true.

Default value
true

zoomToButton

Property
Type
boolean

Indicates whether to display the "Zoom to" button when creating and editing features. Default value is true.

Default value
true