# PaginatorBase

`class` in `core` · v0.6.0

<https://docs.seedcord.org/packages/core/0.6.0/classes/paginator-base>

Holds a paginator's cursor and renders one page. Each transport extends this to add the nav handler and the method that sends the first page.

```ts
abstract class PaginatorBase<Item, Prefix extends string, Ctx>
```

## Constructors

### constructor

```ts
protected PaginatorBase(config: PaginatorConfig<Item, Prefix, Ctx>)
```

Constructs a new instance of the `PaginatorBase` class

## Properties

### config

```ts
protected readonly config: PaginatorConfig<Item, Prefix, Ctx>
```

### cursor

```ts
public readonly cursor: PageCursor<Prefix>
```

The page cursor, pass it to your `@ButtonRoute`.

## Methods

### buildPage

```ts
protected async buildPage(
    ctx: Ctx,
    n: number
): Promise<ReplyResponse>
```

Build one page as a ReplyResponse. Each transport wraps this in a `page()` taking its handler.
