Page Footer
A starter running footer: a line of text on the left and the page number on the right, in the document's own words.
- Two columns. The text on the left in
pfTextand the page number on the right inpfPage, in a three-to-one split. - Placed in a footer. A
usein a footer'scontent; the footer around it keeps its ownhr. - The number in the document's words.
pageLabelandofLabelsurround$global.PAGEand$global.NUMPAGES: "Page 2 of 5" by default, "Page 2 sur 5" withofLabelset tosur. - Two variants.
page-footer-centeredstacks the text over the number in the middle, andpage-footer-three-partadds acenterline betweenleftand the number.
Place it in a footer's content:
{ "footer": { "content": [ { "use": { "name": "page-footer", "params": { "text": "Meridian Capital Partners", "pageLabel": "Page", "ofLabel": "sur" } } } ] } }
| Param | What it fills | Default |
|---|---|---|
text | the left side | Company name |
pageLabel, ofLabel | the words around the numbers: "Page 2 of 5" | Page, of |
Restyle it with pfText and pfPage. The Composed Report places it once, in the document's footer, passing only text and keeping the default labels. See Customizing a component.
Variants
| Component | What differs | Used by |
|---|---|---|
page-footer-centered | the line of text and the page number centred, one over the other. Restyle with pfcText. | Expense report |
page-footer-three-part | a second line of text in the middle (center), between left and the page number. Restyle with pftLeft, pftCenter and pftPage. | Settlement agreement |
Features used: columns, data binding
- Output
- Template
- Data
The component on a sheet of its ownTry in Playground →