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