Skip to main content
cngx-src documentation

withPaginatorRangeFormat

Functionui/paginatorv0.1.0

projects/ui/paginator/paginator-config.ts

Description#

Override the range-readout format. The cngx-pgn-range segment renders the returned string verbatim, so this also localises the of connector.

provideCngxPaginatorConfig(
  withPaginatorRangeFormat((start, end, total) => `${start}-${end} von ${total}`),
);

Signature#

withPaginatorRangeFormat(range)

Parameters#

@paramrange

Returns#

CngxPaginatorConfigFeature