Format pagination item content by replacing template placeholders.
Placeholders:
{{number}}
{{page}}
{{pages}}
Behavior:
item
SectionBuilder
TextDisplayBuilder
setContent
SectionBuilder or TextDisplayBuilder
item to format
current page number (1-based)
total number of pages
item index (0-based, across all items)
the formatted item of the same type (T)
T
Format pagination item content by replacing template placeholders.
Placeholders:
{{number}}=> item number (index + 1){{page}}=> current page number (1-based){{pages}}=> total number of pagesBehavior:
itemis aSectionBuilder, finds itsTextDisplayBuildercomponents, recursively formats them and replaces the section's text components.itemis aTextDisplayBuilder, replaces placeholders in its content and sets the new content withsetContent.