🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue3-pagination

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-pagination

A Vue 3 component for pagination.

1.0.16
latest
Source
npm
Version published
Weekly downloads
248
79.71%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

vue

FAQs

Package last updated on 31 Mar 2021

Did you know?

Socket

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