AttachmentAPI#
Interface AttachmentAPI
Hierarchy
- AttachmentAPI
Methods
create Attachment
- create
Attachment(dataType?): number -
Creates a new attachment.
Parameters
-
Optional
dataType: AttachmentTypeSpecifies the attachment data type.
Returns number
The attachment id.
-
fetch Attachment Data
get Attachment Data
- get
Attachment Data<T>(attachmentID?): T -
Returns the attachment data.
Type Parameters
-
T = any
Parameters
-
Optional
attachmentID: numberSpecifies the attachment object.
Returns T
The attached data
Deprecated
getAttachmentData is deprecated, please use fetchAttachmentData instead.
-
With the AttachmentAPI you can access additional data attached to a node.