GitHub - byteboomers/vue-lpage: Low-level Vue pagination component (original) (raw)

vue-lpage

Low-level Vue pagination component

screenshot

About

This is a low-level, ui-agnostic pagination component.

You pass it an array of data, the current page index and the desired amount of results per page.

It then exposes a scoped slot through which you can access the following:

Recommended usage: wrap this in a high-level styled component.

Installation

NPM

npm install --save vue-lpage

npm package link

CDN

Examples

{{ subset }}
Page out of {{ totalPages }}
Show results per page
Previous Next

Notes

Pagination is one-based (page 1 is the first page).

Props

Slot scope