Socket
Socket
Sign inDemoInstall

@vuecs/pagination

Package Overview
Dependencies
23
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vuecs/pagination

A package containing a vue pagination component.


Version published
Weekly downloads
314
increased by15.87%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@vuecs/pagination 📖

npm version CI

This library provides an easy way to paginate large datasets by providing a range of customization options, including the number of items per page, the number of visible page links, and the layout of the pagination controls. .

Table of Contents

Installation

$ npm i --save @vuecs/pagination

Usage

Register the plugin.

import install from '@vuecs/pagination';
import { createApp } from 'vue'

const app = createApp({})

app.use(install, {
  /* optional options */
})

After the component is registered, it can be used as follows.

<script setup>
const busy = ref(false);

const load = async ({page, limit, offset}) => {
    busy.value = true;
    
    // run load operation
    
    busy.value = false
}
</script>
<template>
    <VCPagination
        :busy="busy"
        :total="100"
        :limit="10"
        :offset="0"
        @load="load"
    />
</template>

License

Made with 💚

Published under MIT License.

Keywords

FAQs

Last updated on 22 Dec 2023

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