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.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns Promise<any>

    The attached data.

  • Returns the attachment data.

    Deprecated

    getAttachmentData is deprecated, please use fetchAttachmentData instead.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    Returns any

    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.

    Parameters

    • Optional attachmentID: number

      Specifies the attachment object.

    • Optional data: any

      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