models/attachment~ Attachment

Represents an attachment on a page

Constructor

new Attachment(path)

Parameters:
NameTypeDescription
path*

Members

filename :string

The filename of the attachment

Type:
  • string

Methods

render(renderer) → {Promise.<string>}

Render the attachment using the renderer instance provided

Parameters:
NameTypeDescription
rendererAssetRenderer

an AssetRenderer instance

Returns:

Path of the rendered attachment to be uploaded to Confluence

Type: 
Promise.<string>