# vue-virtual-list

> Vue.js virtual-list component

Latest version **0.4.2** (published 2017-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-virtual-list
pnpm add vue-virtual-list
yarn add vue-virtual-list
bun add vue-virtual-list
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.2 |
| Published | 2017-06-09 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rendom |
| Maintainers | rendom |
| Keywords | vue, virtual-list, vue-virtual-list |

## Links

- npm: https://www.npmjs.com/package/vue-virtual-list
- Repository: git@github:rendom/vue-virtual-list
- npm.io page: https://npm.io/package/vue-virtual-list

## Recent versions

- 0.4.2 (latest) — 2017-06-09
- 0.4.1 — 2017-04-09
- 0.4.0 — 2017-04-08
- 0.3.1 — 2017-02-21
- 0.3.0 — 2017-02-20
- 0.2.1 — 2016-11-27
- 0.2.0 — 2016-11-20

## README

# vue-virtual-list

DynamicHeight is broken atm.  

### 1. Install component
`npm install vue-virtual-list`

If you have mixed heights on your rows then you need to specify `h (Number)` property on your object with the height.

### 2. Setup your app
```
<template>
  <div id="app">
    <vue-virtual-list>
        <div v-for="item of items">{{item.name}}</div> 
    </vue-virtual-list>
  </div>
</template>

<script>
import vl from 'vue-virtual-list'

export default {
  components: {
    vl
  },
  data () {
    var items = []
    for (var i = 0; i < 50; i++) {
      items.push({name: 'item' + i, h: 20})
    }

    return {
      items: items,
    }
  }
}
</script>
```

### Component properties
| Name        | Type          | Default  |
| ------------- |:-------------:| -----:|
| scroll      | String      |   None, this prop is required can either be `window` or `container`. |
| scrollContainerHegiht | Number      |    Defaults to 500 and is only required if you use scroll container |
| dynamicHeight | Boolean      |    Defaults to `true` this requires that you specify height on your objects. |
| rowHeight | Number      |    Defaults to 0 and is only required if you set objectHeight to false|

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