CngxPaginatorHost
projects/ui/paginator/paginator-host.token.ts
Import#
import { CngxPaginatorHost } from '@cngx/ui/paginator'
Description#
Read-mostly state-and-navigation contract every paginator segment part
injects instead of the concrete CngxPaginator shell.
A structural subset of the CngxPaginate brain
(@cngx/common/data) - the brain provides it via useExisting, so a
decomposed skin keeps talking to the same token without depending on the
organism class (Atomic Decompose, DI abstraction).
The signals are the single derivation source for every segment's disabled
state, label, and aria-current; the methods are the only write paths,
each routing through the brain so the clamp-computed() and busy-gate
invariants hold.
Index#
Instance Properties#
Signal<[number, number]>range() with both bounds capped at total - the honest window for
readouts. The capped end doubles as the cumulative reveal count for
load-more consumers (range()[1] and cumulativeRange()[1] are the same
number).
Signal<[number, number]>[0, end] cumulative slice indices for append-don't-replace (load-more)
consumers - every page revealed so far, sliced from the top.
Signal<[number, number]>[start, end] slice indices for the current page - always in-bounds.