b-virtual-scroll

0.3.5 • Public • Published

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>

Package Sidebar

Install

npm i b-virtual-scroll

Weekly Downloads

0

Version

0.3.5

License

MIT

Unpacked Size

5.77 kB

Total Files

3

Last publish

Collaborators

  • zibr
  • space-dev