5.0.1 • Published 6 months ago

@vue-layout/pagination v5.0.1

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

@vue-layout/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 @vue-layout/pagination

Usage

Register the plugin.

import install from '@vue-layout/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.

3.4.0

9 months ago

3.6.2

6 months ago

5.0.1

6 months ago

5.0.0

6 months ago

4.0.0

6 months ago

3.3.0

11 months ago

3.0.2

11 months ago

3.0.1

11 months ago

2.8.3

11 months ago

2.8.2

11 months ago

3.0.0

11 months ago

2.3.0

12 months ago

2.7.0

11 months ago

2.8.1

11 months ago

2.8.0

11 months ago

2.2.1

1 year ago

2.0.0

1 year ago