Socket
Socket
Sign inDemoInstall

vue-bulma-pagination

Package Overview
Dependencies
41
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-bulma-pagination

Pagination component for Vue Bulma


Version published
Weekly downloads
15
increased by114.29%
Maintainers
1
Install size
6.98 kB
Created
Weekly downloads
 

Readme

Source

Pagination

Pagination component for Vue Bulma.

Installation

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

Examples

<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

propsrequireddefaultoptionaldesc
urlPrefixfalse'/'urlPrefix for vue-router
urlBuilderfalseurlBuilderurlBuilder result will passed to vue-router link to prop
currentPagetrue1
lastPagetruethe last page number
displayPagefalse4page number will to be displayed
modifiersfalse'''','is-centered','is-right'
prevfalse'Prev'text of prev button
nextfalse'Next'text of next button

urlBuilder(pageNum)

Returned value will be passed to router-link as :to prop. See example below:

<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


Keywords

FAQs

Last updated on 15 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc