Types
import type { AttachmentsDisplay, Operations, AttachmentsCapabilities } from "@arcgis/core/widgets/Attachments/types.js";

Type definitions

AttachmentsDisplay

deprecated Type definition
Type
"auto" | "preview" | "list"

Operations

deprecated Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

add

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether to allow adding attachments. Default value is true.

update

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether to allow updating an existing attachment. Default value is true.

delete

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether to allow deleting an existing attachment. Default value is true.

AttachmentsCapabilities

deprecated Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

An object that specifies the available attachments capabilities.

editing

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether to allow attachment editing. The feature layer must be enabled to support editing. Default value is false.

operations

Property
Type
Operations | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Describes the configurable attachments operations. See the object specification below.