Skip to content
import EditorEditingCapabilities from "@arcgis/core/widgets/Editor/support/EditorEditingCapabilities.js";
Inheritance:
EditorEditingCapabilitiesEditingCapabilitiesAccessor
Since
ArcGIS Maps SDK for JavaScript 5.0

The current editing capabilities for the provided layer and read by the Editor. This takes into account what is set on the EditorItem.layerInfo

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.

attachments

readonly Property
Type
AttachmentCapabilities

Specific permissions for attachment operations. It takes into account the Editor's layerInfo settings.

create

readonly Property
Type
CreateCapabilities

Specific permissions for create operations. It takes into account the Editor's layerInfo settings.

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.

defaults

readonly Property
Type
EditingCapabilities

The default editing capabilities for the provided layer. This does not take into account what may be set on the EditorItem.layerInfo settings.

delete

readonly Property
Type
DeleteCapabilities

Specific permissions for delete operations. It takes into account the Editor's layerInfo settings.

formTemplate

readonly Property
Type
FormTemplate | null | undefined

The primary form template in use. It takes into account the Editor's layerInfos and whether a form template is set on a layerInfo within it. If so, the form template set on a LayerInfo within the Editor takes precedence over a form template set directly on a FeatureLayer or SubtypeSublayer. A form template set within the Editor widget's layerInfos takes priority over a form template set directly on a FeatureLayer or SubtypeSublayer.

layer

inherited Property
Type
EditorLayerUnion
Inherited from: EditingCapabilities

The associated layer.

layerInfo

Property
Type
LayerInfo | null | undefined

The layer's associated LayerInfo .

relationship

readonly Property
Type
RelationshipCapabilities

Indicates if the layer contains at least one relationship in addition to child Workflow permissions. It takes into account what is set on the EditorItem.layerInfo. It does not take into account whether a parent or related layer has the ability to edit. A collection of all EditorItems that represent potential related layers should be referenced if accessing editing permissions per related layer.

reliesOnOwnerAdminPrivileges

readonlyinherited Property
Type
boolean
Inherited from: EditingCapabilities

Indicates when editing is enabled and is only due to administrative permissions. It returns false for any users if editing is generally enabled.

update

readonly Property
Type
UpdateCapabilities

Specific permissions for update operations. It takes into account the Editor's layerInfo settings.