simple-pagination
Vue.js component for simple pagination.
About
It takes the number of pages (pages), current page (currentpage) and a function for page changing (@changePage)
Install using npm
npm i @celdotro/vue-simplepagination
OR
yarn add @celdotro/vue-simplepagination
Usage
See "simple-pagination" tag from the example below (all the CSS properties are omitted and get the default values, see Style section for more information):
Style
The 3 main properties are:
- vspbutton = the main button class (defaults to vspButton)
- vspbuttonselected = the currently selected button (defaults to vspButton-selected)
- vspbuttonfast = first and last buttons (defaults to an empty string)
Below is the code used for the first screenshot
Below is the CSS code used for the second screenshot