# vue-infinity-scroll

> Vue infinity scroll package

Latest version **1.1.5** (published 2018-08-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-infinity-scroll
pnpm add vue-infinity-scroll
yarn add vue-infinity-scroll
bun add vue-infinity-scroll
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2018-08-20 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eder Deivid |
| Maintainers | ederdeivid |

## Links

- npm: https://www.npmjs.com/package/vue-infinity-scroll
- Repository: https://github.com/ederdeivid/vue-infinity-scroll
- Homepage: https://github.com/ederdeivid/vue-infinity-scroll#readme
- Issues: https://github.com/ederdeivid/vue-infinity-scroll/
- npm.io page: https://npm.io/package/vue-infinity-scroll

## Recent versions

- 1.1.5 (latest) — 2018-08-20
- 1.1.4 — 2018-08-09
- 1.1.3 — 2018-08-08
- 1.1.2 — 2018-08-06
- 1.1.1 — 2018-08-06
- 1.0.10 — 2018-08-03
- 1.0.9 — 2018-08-03
- 1.0.8 — 2018-08-03
- 1.0.7 — 2018-08-03
- 1.0.6 — 2018-08-03
- 1.0.5 — 2018-08-03
- 1.0.4 — 2018-08-03
- 1.0.3 — 2018-08-02
- 1.0.2 — 2018-08-02
- 1.0.1 — 2018-08-02
- … 1 more at https://npm.io/package/vue-infinity-scroll/versions

## README

# vue-infinity-scroll [![npm](https://img.shields.io/npm/v/vue-multiselect.svg)](https://www.npmjs.com/package/vue-infinity-scroll)
Probably the most complete *Infinity Scroll* component for Vue.js 2.0. (*Its a Joking, that's my first npm project. I hope this helps*)

## NOTE:
 **All Versions before 1.0.5 doesn't work**

## Install & basic usage

```bash
npm i vue-infinity-scroll
```

```vue
<template>
  <div>
    <vue-infinity-scroll
      :hasNextPage="true"
      visClass="panel panel-default"
      visAllScreen="50vh"
      @scrolling="scrolling"
      buttonText="Go to Top"
      buttonClass="btn btn-primary"
      buttonIcon="fa fa-arrow-up"
    >
      // your things here
    </vue-infinity-scroll>
  </div>
</template>

<script>
import VueInfinityScroll from 'vue-infinity-scroll'

export default {
  data () {
    return {
      offset: 0,
    }
  },
  components: {
    VueInfinityScroll
  },
  methods: {
    scrolling () {
      this.offset = this.offset + 1
    }
  }
}

</script>
```
# Options

| Option | Expect | Description |
| ----- | ----- | ----- |
| :hasNextPage | Boolean | Here u can use to see if u request has a next page to go |
| @scrolling | Function | that event is emited when the scroll down has ended |
| :visClass | String | Your class |
| :btnVisible | Boolean | Hidden the Go to top button |
|:buttonText | String | When u scroll down your vue-infinity-scroll u'll see a button to go to top, u can change the name of button using that props |
| :buttonClass | String | U can add yout class to button. Bootstrap example: "btn btn-sm btn-primary" |
| :buttonIcon | String |  Icon to your button. Font-Awesome Example: "fa fa-arrow-up" |
| :visSmallScreen | String | When u resize your screen to a small screen (less than 768px) u can choose your height (vh, px, em...)|
| :visMidScreen | String | The same of visSmallScreen but to mid screen (between 768px and 1000px |
| :visLargeScreen | String | The same of visSmallScreen but to large screen (bigger than 1000px) |
| :visAllScreen | String | Define only one height to all screen size |
| :resetScroll | Boolean | Can be util if u want do a new request and reset the current scroll (If u dont use, new request will jump to same before position) |


## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

---
_Source: https://npm.io/package/vue-infinity-scroll · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
