AttachmentAPI#

Interface AttachmentAPI

With the AttachmentAPI you can access additional data attached to a node.

Hierarchy

Methods

  • Creates a new attachment.

    Parameters

    • Optional dataType: AttachmentType

      Specifies the attachment data type.

    Returns number

    The attachment id.

  • Fetches & returns the attachment data.

    Type Parameters

    • T = any

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns Promise<T>

    The attached data.

  • Returns the attachment data.

    Deprecated

    getAttachmentData is deprecated, please use fetchAttachmentData instead.

    Type Parameters

    • T = any

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns T

    The attached data

  • Returns the attachment data URI.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns string

  • Removes an existing attachment.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns void

  • Sets the attachment data.

    Type Parameters

    • T = any

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    • Optional data: T

      The new attachment data.

    Returns void

  • Sets the attachment data URI.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    • Optional dataURI: string

      The attachment data URI.

    Returns void


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: