import AttachmentElementInput from "@arcgis/core/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js";const AttachmentElementInput = await $arcgis.import("@arcgis/core/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js");- Inheritance
- AttachmentElementInput→
EditableInput<any>→ InputBase→ Accessor
- Since
- ArcGIS Maps SDK for JavaScript 5.1
This is a read-only support class that represents an attachment element in a BatchAttributeForm.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| readonly | | |
| readonly | | |
| readonly | | |
| | ||
| readonly inherited | ||
| readonly | | |
| readonly inherited | ||
| | ||
| readonly | | |
| readonly inherited | ||
| readonly inherited | ||
| readonly inherited | ||
| readonly | | |
| readonly | | |
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly | | |
| readonly | "attachment" | |
| readonly | | |
| readonly inherited | ||
| readonly inherited |
allAttachmentsVisibleOnDefaultPage
- Type
- boolean
Indicates whether all attachments for this input are visible on the default page.
defaultPageAttachments
- Type
- AttachmentInfo[]
The attachments visible on the default page before showing the full attachments list action.
displayCount
- Type
- number
The maximum number of attachments displayed on the default page before showing the full attachments list action.
- Default value
- 3
editable
- Type
- boolean
Indicates if the input is editable.
editType
- Type
- EditType
The type of edit operation the form is being used for. This can influence whether a field is editable or not (e.g., the layer only allows certain edit operations)
This is also the value that will be set for the Arcade variable
$editcontext.editType in the Arcade context used to evaluate form
expressions.
Accepted values are "INSERT", "UPDATE", "DELETE", and "NA".
For FieldInputs with value expressions, this property is also used in
determining whether or not the value expressions should be applied. Per the
Web Map Specification,
value expressions are ignored if the associated layer field is not
editable. Determining whether the layer field is editable must consider
whether the specific type of edit being attempted is allowed. For example,
if a layer has the supportsAdd capability but does not have the
supportsUpdate capability, then the value expression will be applied if
editType is INSERT but ignored if editType is UPDATE.
For the purposes of determining whether or not the layer allows the current
edit type, a value of "NA" is always considered allowed.
- Default value
- "NA"
existsInAllLayers
- Type
- boolean
Indicates whether the input pertains to all the features in the BatchAttributeForm in which the input belongs.
- Default value
- true
input
- Type
- AttachmentInputUnion | null | undefined
The configured attachment input for this element.
layer
Identifies the single feature layer associated with this attachment element. The layer must support feature editing and field access.
The following layer types are supported:
- FeatureLayer
- GeoJSONLayer
- SceneLayer (with
featureLayerproperty) - SubtypeSublayer
- OrientedImageryLayer
- KnowledgeGraphSublayer
layers
An array of layers included in the BatchAttributeForm. Each layer must support feature editing and field access.
The following layer types are supported:
- FeatureLayer
- GeoJSONLayer
- SceneLayer (with
featureLayerproperty) - SubtypeSublayer
- OrientedImageryLayer
- KnowledgeGraphSublayer
valid
- Type
- boolean
Indicates whether the input currently has valid user input.