Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttachmentsResolver

A resolver for cell attachments 'attchment:filename'. The namespace for AttachmentsResolver class statics.

Will resolve to a data: url.

Hierarchy

  • AttachmentsResolver

Implements

  • IResolver

Index

Interfaces

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _model

Private _parent

_parent: IResolver | null

Methods

getDownloadUrl

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

    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