Socket
Socket
Sign inDemoInstall

vue-paginate-scroll

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-paginate-scroll

Vue component that handles infinite scroll


Version published
Weekly downloads
7
decreased by-56.25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue-paginate-scroll

Vue component that handles "infinite scroll"

npm install vue-paginate-scroll

➡➡Example here

Install as global component

  //index.js
 
  import Vue from "vue";
  import VuePaginateScroll from "vue-paginate-scroll";
  
  Vue.component('vue-paginate-scroll', VuePaginateScroll);
  
  new Vue({
   //...
  });

Install as local component

  <script>
  import VuePaginateScroll from "vue-paginate-scroll";
  
  export default {
    ...
    components: { VuePaginateScroll }
    ...
  }
  </script>

Props

src: type: Array, required. Data to use as source.

perScroll: type: Number, default: 10. Define how many items to show per scroll

observerOptions: type: Object, default: {threshold: .75}. IntersectionObserver options

Slots

default: use this to get the data to display. Data exposed { data, currentScroll, lastScroll }

Keywords

FAQs

Last updated on 10 Jul 2020

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