Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.0.0 <= v < 1.0.0

Ui.Pagination

A component for displaying buttons for paginatable content.

Properties

disabled
:
Bool
=
false

Whether or not the pagination is disabled.

onChange
:
Function(Number, Promise(Never, Void))
=
Promise.never1

The change event handler.

page
:
Number
=
0

The current page.

perPage
:
Number
=
10

How many items are in one page.

sidePages
:
Number
=
2

How many side pages to render.

size
:
Ui.Size
=
Ui.Size::Inherit

The size of the component.

total
:
Number
=
0

The total number of items.

Functions

render
:
Html

Renders the pagination.

renderButton
(
data
:
Tuple(Number, Bool, String, Html)
)
:
Html

Renders a button.