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
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
report
- ARapport.Report
struct that you want to add the page to.page
- ARapport.Page
struct
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
- ARapport.Report
struct that you want to add the page to.page_template
- An EEx template for the pagefields
- 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
report
- ARapport.Report
struct that you want to add the page to.pages
- A list withRapport.Page
structs