Interface RelationalPaginationLink sincev5.9.0
interface RelationalPaginationLink {
readonly isCurrent: boolean;
readonly isReal: true;
readonly rel: "first" | "prev" | "next" | "last";
setActive: () => Promise<unknown>;
readonly url: string;
get text(): string;
}Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:149
Hideconstructor
A relational (first/prev/next/last) navigation link, relative to the active page. Unlike RealPaginationLink these carry no ordinal index — they are the only links available for cursor-based pagination, where pages are chained purely by opaque relational links with no page number or total. They are also available in numbered pagination as a convenience.
<EachLink @pages={{pages}} as |state|>
{{#if state.prev}}<button {{on "click" state.prev.setActive}}>Previous</button>{{/if}}
{{#if state.next}}<button {{on "click" state.next.setActive}}>Next</button>{{/if}}
</EachLink>Properties
isCurrent
readonly isCurrent: boolean;Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:159
Whether this link points at the page that is already active — for example the first link while the first page is being viewed. Useful for disabling the control.
isReal
readonly isReal: true;Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:150
rel
readonly rel: "first" | "prev" | "next" | "last";Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:152
setActive
setActive: () => Promise<unknown>;Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:188
Loads this link's page and makes it the active page on the associated PaginationState. It is a stable reference, so it is safe to pass around as an "action" or "event" handler:
<button {{on "click" link.setActive}}>{{link.text}}</button>Returns
Promise<unknown>
url
readonly url: string;Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:153
text
Get Signature
get text(): string;Defined in: warp-drive-packages/core/src/signals/pagination-links.ts:175
Returns
string