CRUDUI

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

PaginationButtonVM interface

One pagination button. A renderer chooses the button's text by its role (‹, the page number, ›); label is its accessible name from the list interface messages.

Signature:

export interface PaginationButtonVM 

Properties

Property

Modifiers

Type

Description

current

boolean

true for the current page's button.

disabled

boolean

true when the button cannot be used.

label

string

Accessible name in the display language.

page

number

The page the button selects.

role

'previous' | 'page' | 'next'

What the button does.