1.0.1 • Published 2 years ago

@aksestani/vue3-pagination v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vue 3 Pagination

A Vue 3 component for pagination.

forked from HENNGE/vue3-pagination

Table of Contents

Demo

Installation

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

// with npm
npm install @aksestani/vue3-pagination
// with yarn
yarn add @aksestani/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 "@aksestani/vue3-pagination";
import "@aksestani/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.1

2 years ago

1.0.0

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago