b-virtual-scroll
v0.3.5
Published
virtual scroll for vue.js&Quasar
Downloads
13
Readme
VirtualScroll for Vue.js
###Example:
<b-virtual-scroll
:values="items"
:def-item-height="40"
:block-height="500"
:add-elements="2"
v-on:onScrollBlock="scrollEvent"
>
<template slot-scope="slotProps">
{{ slotProps.value }}
</template>
</b-virtual-scroll>
Example-2 (list):
<q-list>
<b-virtual-scroll
:values="items"
:def-item-height="28"
:block-height="400"
parent-tag="q-item"
:parent-params="{class: 'bg-green', props: {}}"
>
<template slot-scope="slotProps">
<span>{{slotProps.value.name}}</span>
</template>
</b-virtual-scroll>
</table>