Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttachmentsResolver

A resolver for cell attachments 'attachment:filename'.

Will resolve to a data: url.

Hierarchy

  • AttachmentsResolver

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create an attachments resolver object.

    Parameters

    Returns AttachmentsResolver

Properties

Private _model

_model: any

Private _parent

_parent: any

Methods

getDownloadUrl

  • getDownloadUrl(path: string): Promise<string>
  • Get the download url of a given absolute server path.

    Notes

    The returned URL may include a query parameter.

    Parameters

    • path: string

    Returns Promise<string>

isLocal

  • isLocal(url: string): boolean
  • Whether the URL should be handled by the resolver or not.

    Parameters

    • url: string

    Returns boolean

resolveUrl

  • resolveUrl(url: string): Promise<string>
  • Resolve a relative url to a correct server path.

    Parameters

    • url: string

    Returns Promise<string>

Generated using TypeDoc