1.0.16 • Published 3 years ago

vue3-pagination v1.0.16

Weekly downloads
315
License
MIT
Repository
github
Last release
3 years ago

Vue 3 Pagination

This package has been migrated to @hennge/vue3-pagination and is no longer supported.

Table of Contents

Demo

Demo

Installation

Package is available on NPM: https://www.npmjs.com/package/vue3-pagination

// with npm
npm install vue3-pagination
// with yarn
yarn add vue3-pagination

The component is packaged mainly for use with bundlers, if you require a browser build - post an issue.

Getting Started

Import component

import VPagination from "vue3-pagination";
import "vue3-pagination/dist/vue3-pagination.css";

export default {
  ...
  components: {
    VPagination
  }
  ...
}

How to use

<template>
  <v-pagination
    v-model="page"
    :pages="10"
    :range-size="1"
    active-color="#DCEDFF"
    @update:modelValue="updateHandler"
  />
</template>

Props and attributes

Main interaction with the pagination is done via v-model with Number as expected type of the value passed.

IDTypeDefaultDescription
pagesNumberTotal number of pages
rangeSizeNumber1Number of page around the current page
activeColorString#DCEDFFBackground color of the current page
hideFirstButtonBooleanfalseHide the button to go to the first page
hideLastButtonBooleanfalseHide the button to go to the last page

Events

IDOutputDescription
update:modelValueNumberThe current page has been updated

License

MIT

Copyright © 2020 - Present, Julian Springaux

Contact

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago