# vue-bulma-pagination

> Pagination component for Vue Bulma

Latest version **1.2.0** (published 2017-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-bulma-pagination
pnpm add vue-bulma-pagination
yarn add vue-bulma-pagination
bun add vue-bulma-pagination
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-05-15 |
| First published | 2017-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | netpi |
| Maintainers | netpi |
| Keywords | vue, bulma, vue-bulma, vue-bulma-pagination, pagination |

## Links

- npm: https://www.npmjs.com/package/vue-bulma-pagination
- Repository: https://github.com/vue-bulma/vue-bulma-pagination
- Homepage: https://github.com/vue-bulma/vue-bulma-pagination#readme
- Issues: https://github.com/vue-bulma/vue-bulma-pagination/issues
- npm.io page: https://npm.io/package/vue-bulma-pagination

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2017-05-15
- 1.1.5 — 2017-05-04
- 1.1.4 — 2017-03-16
- 1.1.3 — 2017-03-16
- 1.1.2 — 2017-03-10
- 1.1.1 — 2017-03-10
- 1.1.0 — 2017-03-10
- 1.0.5 — 2017-03-04
- 1.0.4-beta.2 — 2017-03-04
- 1.0.4-beta.1 — 2017-03-04
- 1.0.4 — 2017-03-04
- 1.0.3 — 2017-03-03
- 1.0.2 — 2017-03-03
- 1.0.1 — 2017-03-03
- 1.0.0-beta.4 — 2017-03-03
- … 4 more at https://npm.io/package/vue-bulma-pagination/versions

## README

# Pagination

Pagination component for Vue Bulma.

## Installation

```sh
$ npm install vue-bulma-pagination --save
# or
$ yarn add vue-bulma-pagination --save
```

## Examples

```vue
<template>
  <div>
    <pagination :urlPrefix="'/'" :currentPage="2" :lastPage="100" />
  </div>
</template>

<script>
import Pagination from 'vue-bulma-pagination/src/Pagination'

export default {
  components: {
    Pagination
  }
}
</script>
```
## Document

| props       | required | default                   | optional                    | desc                             |
| ----------- | -------- | --------------------------| --------------------------- | -------------------------------- |
| urlPrefix   | `false`  | '/'                       |                             | urlPrefix for vue-router         |
| urlBuilder  | `false`  | [urlBuilder](#urlbuilderpagenum) |                             | urlBuilder result will passed to vue-router link `to` prop        |
| currentPage | `true`   | 1                         |                             |                                  |
| lastPage    | `true`   |                           |                             | the last page number             |
| displayPage | `false`  | 4                         |                             | page number will to be displayed |
| modifiers   | `false`  | ''                        | '','is-centered','is-right' |                                  |
| prev        | `false`  | 'Prev'                    |                             | text of `prev` button            |
| next        | `false`  | 'Next'                    |                             | text of `next` button            |


### urlBuilder(pageNum)
Returned value will be passed to `router-link` as `:to` prop. See example below:
```vue
<template>
  <div class="container">
    <pagination :urlBuilder="urlBuilder" :currentPage="2" :lastPage="100" />
  </div>
</template>

<script>
import Pagination from 'vue-bulma-pagination/src/Pagination'

export default {
  components: {
    Pagination
  },

  methods: {
    urlBuilder (page) {
      return { query: { ...this.$route.query, page } } // Changing page in location query
    }
  }
}
</script>
```

## Badges

![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-dev-yellow.svg)

---

---
_Source: https://npm.io/package/vue-bulma-pagination · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
