Shared pagination component used by Table, List, and Grid renderers.
Supports two pagination modes:
Ash.Page.Offset- Traditional page numbers with jump-to-pageAsh.Page.Keyset- Cursor-based with prev/next navigation (faster for large datasets)
Uses AshPhoenix.LiveView helpers for working with Ash.Page structs directly.
Summary
Functions
Renders pagination controls with page navigation and optional page size selector.
Checks if pagination controls should be shown based on page.
Functions
Renders pagination controls with page navigation and optional page size selector.
Handles the wrapper div and conditional display internally. Returns empty content if pagination should not be shown.
Required assigns
page- AnAsh.Page.Offset,Ash.Page.Keyset, or nilpage_size_config- Map with page size configurationtheme- Theme configuration mapmyself- LiveComponent reference for event targetingshow_pagination- Boolean to enable/disable pagination (default: true)
Checks if pagination controls should be shown based on page.
Returns true if there are more results than fit on one page.