View as Markdown

API reference: @salmonui/navigation/pager

PagerPageSizeContextinterface

import type { PagerPageSizeContext } from '@salmonui/navigation/pager';
interface PagerPageSizeContext {
    readonly value: number | 'all';
    readonly options: readonly PagerPageSizeOption[];
    readonly label: string;
    setPageSize(pageSize: number | 'all'): void;
}

renderPageSize context: everything a custom control (for example a Select) needs.

PagerPageSizeContext members (4)
NameSignatureDescription
valuereadonly value: number | 'all';

The selected option ('all' when the page shows every item and 'all' is offered).

optionsreadonly options: readonly PagerPageSizeOption[];
labelreadonly label: string;

localeText.pageSize, for the control's accessible name.

setPageSizesetPageSize(pageSize: number | 'all'): void;