An open API service indexing awesome lists of open source software.

https://github.com/ybrusentsov/vue-pagination-simple

simple vue pagination module
https://github.com/ybrusentsov/vue-pagination-simple

vue-components vue-pagination

Last synced: 2 months ago
JSON representation

simple vue pagination module

Awesome Lists containing this project

README

          

vue-pagination-simple
=============

Simple pagination vue component

## Installation
---------------
### npm
``` sh
npm install --save vue-pagination-simple
```

## Usage
---------------

```html



export default {
name: 'app',
data () {
return {
currentPage: 6,
totalPages: 10,
pageRange: 2
}
},
methods: {
changePage(page) {
console.log(`page changed on ${page}`);
this.currentPage = page;
}
}
}

// you can add style of pagination hover and border by class .pagination

.pagination a:hover:not(.active) {
background-color: #ddd;
}

.pagination a {
border: 1px solid #ddd;
}

.center {
display: flex;
justify-content: center;
}

```
## Example
---------------

pagination example