Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Template

Hierarchy

Index

Methods

generateFilename

  • generateFilename(data: any, options?: any): string
  • Generates a filename for given data

    Parameters

    • data: any

      The data to render

    • Default value options: any = {}

      Some options to pass to the renderer

    Returns string

    The generated filename

isSupporting

  • isSupporting(data: any, options?: any): boolean
  • Checks if this renderer is supporting given data and options

    Parameters

    • data: any

      The data to check support for

    • Default value options: any = {}

    Returns boolean

    Returns whether this renderer is supporting a given element

render

  • render(data: any, options: any, next: function): string
  • Renders any kind of data

    Parameters

    • data: any

      The data to render

    • options: any

      Some options to pass to the renderer

    • next: function

      Calls the next data to be rendered

        • (data: any): void
        • Parameters

          • data: any

          Returns void

    Returns string

    A promise that resolves after finishing the rendering

Generated using TypeDoc