CRUDUI

Home > @polyspec/crudui-generator-core > PaginationVM

PaginationVM interface

Resolved pagination declaration with the caller's current page and total.

Signature:

export interface PaginationVM 

Properties

Property

Modifiers

Type

Description

buttons?

PaginationButtonVM[]

(Optional) The previous, numbered and next buttons of enabled paging, in order.

enabled

boolean

false when paging is off.

mode?

string

(Optional) Declared pagination mode.

page?

number

(Optional) Current page from the page option, never derived from the rows.

pageCount?

number

(Optional) Number of available pages; one page is retained for an empty result.

perPage?

number

(Optional) Declared number of rows per page.

total?

number

(Optional) Total record count from the total option.