Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the users desired shape of the pagination. If you want to change the appearance of the pagination buttons you can write and use your custom render function. The default appearance would be

prev 1 2 3 4 5 next

If you wanted your pagination to instead look like this

< 1 2 3 4 5 >

You would have to write custom renderNext and renderPrev functions like this

page.paginationTemplate.renderNext = (value) => {
     return `>`
}
page.paginationTemplate.renderPrev = (value) => {
     return `<`
}

Whatever gets returned by your function will be wrapped in a <li> tag

Hierarchy

  • PaginationTemplate

Index

Constructors

constructor

Properties

cssClasses

cssClasses: PaginationClasses

The CSS classes used to decorate the pagination elements.

renderNext

The function to render the next button. If you don't overwrite this function, the default function PAGINATION_FUNCTION will be used.

renderPage

The function to render a page button. If you don't overwrite this function, the default function PAGINATION_FUNCTION will be used.

renderPrev

The function to render the prev button. If you don't overwrite this function, the default function PAGINATION_FUNCTION will be used.

Generated using TypeDoc