Pagination

Previous / next and page numbers, with ellipses for long ranges.

Installation

bash
shellui-native add pagination

Platforms: MAUI · Avalonia. Also installs icon.

Usage

Basic

Rendered with ShellUI for Blazor
<ui:Pagination Page="5" TotalPages="20" PageChanged="OnPageChanged" />
Avalonia, running in your browser

MAUI and Avalonia

  • ShowLabels (the "Previous" / "Next" text) is on by default; MAUI turns it off on phones.
  • On Avalonia every page and arrow is a tab stop that activates with Enter or Space.

API

Property Type Default Description
Page int 1 Current page, starting at 1. Two-way bindable.
TotalPages int 1 Number of pages.
SiblingCount int 1 Pages shown on each side of the current page.
ShowLabels bool true (false on phones) (MAUI) · true (Avalonia) "Previous" / "Next" text next to the chevrons. Off by default on phones to fit the width.
Event Arguments Description
PageChanged int User input only: setting Page from code or a binding doesn't raise it.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.