import VisibleElements from "@arcgis/core/widgets/Editor/VisibleElements.js";const VisibleElements = await $arcgis.import("@arcgis/core/widgets/Editor/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
// This removes the feature enabled snapping toggle and the layerlist.editor.visibleElements = { snappingControlsElements: { featureEnabledToggle: false, layerList: false }}Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| |
createFeaturesSection
- Type
- boolean
Indicates whether to display the "create features" section of the widget in the default view.
- Default value
- true
editFeaturesSection
- Type
- boolean
Indicates whether to display the "edit features" section of the widget in the default view.
- Default value
- true
flow
- 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
- Type
- boolean
Indicates whether to display the sketch labels toggle. Default value is true.
- Default value
- true
mergeButton
- 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
- Type
- boolean
Indicates whether to display the settings menu. This menu contains the snapping and tooltips settings.
- Default value
- true
sketch
- Type
- boolean
Determines whether the widget should display an embedded Sketch widget to provide graphical controls for choosing drawing tools.
- Default value
- true
snappingControls
- Type
- boolean
Indicates whether to display the SnappingControls widget. Default is true.
- Default value
- true
snappingControlsElements
The available SnappingControls elements within the widget.
splitButton
- Type
- boolean
Indicates whether to display the "Split" button in contexts where that command is available. Default value is true.
- Default value
- true
tooltipsToggle
- Type
- boolean
Indicates whether to display the tooltips toggle. Default value is true.
- Default value
- true
undoRedoButtons
- Type
- boolean
Indicates whether to display undo/redo buttons in the embedded Sketch toolbar. Default value is true.
- Default value
- true
zoomToButton
- Type
- boolean
Indicates whether to display the "Zoom to" button when creating and editing features. Default value is true.
- Default value
- true