A pager component displays, well, a pager.. This is more or less its output
1 2 3 4 ... 9 10 **11** 12 13 ... 86 87 88 89
<fm:Pager currentPage="{$$get.page}" totalPages="{$totalPages}" />
Name | Required | Default | Description |
---|---|---|---|
currentPage | Required | N/A | The current page |
disabledNextTemplate | Optional | <, only used when numPages is set | |
disabledPreviousTemplate | Optional | >, only used when numPages is set | |
limitAfterLastSeparator | Optional | 3 | Number of links after the second separator |
limitBeforeFirstSeparator | Optional | 4 | Number of links before the first separator |
limitBetweenSeparators | Optional | 6 | Number of links between the first and the second separator |
linkTemplate | Optional | <a href="?page=%page">%pageplus1</a> | Template for page number link |
nextTemplate | Optional | <a href="?page=%page"><</a> | Template for the Next button |
numPages | Optional | N/A | Disables separators, limits maximum number of pages displayed |
previousTemplate | Optional | <a href="?page=%page">></a> | Template for the Previous button |
selectedTemplate | Optional | <a href="?page=%page">></a> | Template for the page currently selected |
separatorTemplate | Optional | ... | Separator between the first pages links and the last pages links |
totalPages | Optional | N/A | The number of pages |
This component defines no template variables.