AttachmentAPI#
Interface AttachmentAPI
Hierarchy
- AttachmentAPI
Methods
create Attachment
- create
Attachment(dataType?: AttachmentType): 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?: number): T -
Returns the attachment data.
Deprecated
getAttachmentData is deprecated, please use fetchAttachmentData instead.
Type Parameters
-
T = any
Parameters
-
Optional
attachmentID: numberSpecifies the attachment object.
Returns T
The attached data
-
With the AttachmentAPI you can access additional data attached to a node.