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