Rapport.Page (rapport v0.7.2)

Summary

Functions

Adds a new page to a report.

Adds a new page to a report.

Adds a list of pages to a report.

Types

@type t() :: %Rapport.Page{fields: map(), template: String.t()}

Functions

Link to this function

add_page(report, page)

@spec add_page(Rapport.Report.t(), t()) :: Rapport.Report.t()

Adds a new page to a report.

Options

Link to this function

add_page(report, page_template, fields)

@spec add_page(Rapport.Report.t(), String.t(), map()) :: Rapport.Report.t()

Adds a new page to a report.

Options

  • report - A Rapport.Report struct that you want to add the page to.
  • page_template - An EEx template for the page
  • fields - A map with fields that must be assigned to the EEx template
Link to this function

add_pages(report, pages)

@spec add_pages(Rapport.Report.t(), [t()]) :: Rapport.Report.t()

Adds a list of pages to a report.

Options