API reference
@salmonui/navigation/pager
15 exported symbols: 1 component, 11 interfaces, 2 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/navigation/pager';Components
PagerThe standalone pager. ref is the <nav> element.
Interfaces
PagerBeforePageChangeEventonBeforePageChange event: preventDefault() keeps the current page.PagerBeforePageSizeChangeEventonBeforePageSizeChange event: preventDefault() keeps the page size and page.PagerIconsIcons for the first / previous / next / last buttons; a missing entry keeps the built-in (mirrored in RTL) icon.PagerLocaleTextUser-visible strings of Pager. Plain JSON, safe to pass from a server component.PagerPageChangeEventonPageChange event (frozen). reason: 'pageSize' when a page-size change clamped the page.PagerPageSizeChangeEventonPageSizeChange event (frozen); page is the page after the clamp.PagerPageSizeContextrenderPageSize context: everything a custom control (for example a Select) needs.PagerPageSizeOptionPagerPropsPagerRenderContextContext of renderPager and renderInfo (the Data Grid context).PagerTemplateContextrenderPager context: the render context plus the built-in pager content.
Types
PagerLocaleMessageA {param} template, or plural forms keyed by Intl.PluralRules category.PagerSourceInput that caused a change; 'api' is a call of the render context's goToPage / setPageSize.