Construct pagination

If you want to construct a pagination control from low-level components, you can use pagination_wrapper and pagination_item. The former serves as a container for pagination items, while the latter represents an individual page link. You can customize the appearance and behavior of each pagination item by passing appropriate parameters to it, such as href for the link URL or active to indicate the current page.

{%- call ui.util.call(show_example) -%} {%- raw %} {%- call ui.util.call(ui.pagination_wrapper) -%} {{ ui.pagination_item("Show older records", href="?before=today") }} {{ ui.pagination_item("Show newer records", href="?after=today") }} {%- endcall %} {%- endraw %} {%- endcall %}