1.1.7 • Published 1 year ago

vue-basic-pagination v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vue-basic-pagination

A Basic Vue.js pagination component. (Compatible with Vue.js 3)

Sandbox

Installation

NPM

$ npm install vue-basic-pagination

Register the component globally...

import { createApp } from 'vue'
import App from './App.vue'

import { VueBasicPagination } from 'vue-basic-pagination';
import 'vue-basic-pagination/dist/style.css'
// don't forget to load the css file

createApp(App)
.component('VueBasicPagination', VueBasicPagination)
.mount('#app')

... or import it locally

<script setup>
import { VueBasicPagination } from 'vue-basic-pagination';
import 'vue-basic-pagination/dist/style.css'
</script>

Usage

<VueBasicPagination :total-rows="totalRows" :per-page="perPage" v-model="currentPage" />
<script setup>
import { ref } from 'vue'

const totalRows = ref(100)
const perPage = ref(10)
const currentPage = ref(1)
</script>

Available props

PropTypeDefault
totalRowsNumber1
perPageNumber1
prevBtnString
nextBtnString
firstBtnString«
lastBtnString»
smallBooleanfalse

Events

EventDescription
changeTriggers when you select any page
1.1.7

1 year ago

1.1.6

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago