Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/oraphadev/vue-easy-pager

Simple pagination component for Vue.js
https://github.com/oraphadev/vue-easy-pager

vue vuejs

Last synced: 5 days ago
JSON representation

Simple pagination component for Vue.js

Awesome Lists containing this project

README

        

## Features & characteristics:
* No dependencies
* Very lean and simple
* Configurable (see props list below)

## Props list
* `:currentPage` used to choose a current dynamic page.
* `:totalPages` set the total number of pages.
* `:maxPagesDisplayed` set the maximum number of pages displayed.

## Events list
* `@changePage` event called when the page changes. Returns the number of the new page.

## Example
![](demo/demo-vue-easy-pager.gif)

## Install & basic usage

```bash
npm install vue-easy-pager
```

```vue



import VueEasyPager from 'vue-easy-pager';
export default {
components: { VueEasyPager },
}

```