Skip to content

roman01la/virtual.list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

virtual.list

Virtual list component for Prum

[org.roman01la/virtual.list "0.1.2"]

Usage

See live demo & example source code

API

(virtual.list/v-list
  {:rows-count     8
   :max-rows-count 1000
   :row-height     48
   :render-row     render-row
   :overscan-count 4
   :timeout        120})
  • :rows-count — amount of visible rows to render, default is unspecified
  • :max-rows-count — total amount of rows in a list, default is unspecified
  • :row-height — height of a single wo in pixels, default is unspecified
  • :render-row — a function returning a row component, accepts a map of :idx & :scrolling?, default is unspecified
    • :idx — index of current row in :max-rows-count
    • :scrolling? — whether list is being scrolled or not
  • :overscan-count — number of rows to render ahead of scrolling direction, default is 0
  • :timeoutscrolling? timeout is milliseconds, default is 150