Provides the logic for the Attachments widget.
- See also:
Constructors
-
new AttachmentsViewModel(properties)
-
Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class | |
---|---|---|---|---|
AttachmentInfo | The current AttachmentInfo being edited. more details | more details | AttachmentsViewModel | |
AttachmentInfo[] | A collection of AttachmentInfo defined on a feature. more details | more details | AttachmentsViewModel | |
String | The name of the class. more details | more details | Accessor | |
Graphic | The graphic for the attachments. more details | more details | AttachmentsViewModel | |
String | The current mode performed by the user. more details | more details | AttachmentsViewModel | |
String | The current state of the widget. more details | more details | AttachmentsViewModel | |
Boolean | Defines whether or not the feature supports resizing attachments. more details | more details | AttachmentsViewModel |
Property Details
-
activeAttachmentInfo AttachmentInfo
-
The current AttachmentInfo being edited.
-
attachmentInfos AttachmentInfo[]readonly
-
A collection of AttachmentInfo defined on a feature.
-
The name of the class. The declared class name is formatted as
esri.folder.className
.
-
graphic Graphic
-
The graphic for the attachments.
-
mode String
-
The current mode performed by the user.
Possible Values:"view"|"add"|"edit"
- Default Value:"view"
-
state Stringreadonly
-
The current state of the widget.
Possible Values:"ready"|"disabled"|"loading"
- Default Value:"ready"
-
supportsResizeAttachments Boolean
-
Defines whether or not the feature supports resizing attachments. This depends on whether the feature layer's capabilities.operations.supportsResizeAttachments is set to
true
.
Method Overview
Name | Return Type | Summary | Class | |
---|---|---|---|---|
Promise<AttachmentInfo[]> | Queries for the attachments on a feature. more details | more details | AttachmentsViewModel |
Method Details
-
getAttachments(){Promise<AttachmentInfo[]>}
-
Queries for the attachments on a feature. Attachments for multiple features can be queried if the layer's capabilities.operations.supportsQueryAttachments is
true
.Returns:Type Description Promise<AttachmentInfo[]> When resolved, returns the AttachmentInfo of the queried feature. - See also: