import EditorEditingCapabilities from "@arcgis/core/widgets/Editor/support/EditorEditingCapabilities.js";const EditorEditingCapabilities = await $arcgis.import("@arcgis/core/widgets/Editor/support/EditorEditingCapabilities.js");- Inheritance:
- EditorEditingCapabilities→
EditingCapabilities→ Accessor
- 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
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
attachments readonly | | |
create readonly | | |
declaredClass readonly inherited | ||
defaults readonly | | |
delete readonly | | |
formTemplate readonly | | |
layer inherited | ||
| | ||
relationship readonly | | |
reliesOnOwnerAdminPrivileges readonly inherited | ||
update readonly | |
attachments
Specific permissions for attachment operations. It takes into account the Editor's layerInfo settings.
create
- Type
- CreateCapabilities
Specific permissions for create operations. It takes into account the Editor's layerInfo settings.
defaults
- 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
- Type
- DeleteCapabilities
Specific permissions for delete operations. It takes into account the Editor's layerInfo settings.
formTemplate
- 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
- Type
- EditorLayerUnion
The associated layer.
relationship
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
- Type
- boolean
Indicates when editing is enabled and is only due to administrative permissions. It returns false for any users if editing is generally enabled.
update
- Type
- UpdateCapabilities
Specific permissions for update operations. It takes into account the Editor's layerInfo settings.