Giter Site home page Giter Site logo

roman01la / virtual.list Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 48 KB

Virtual list component for Prum

Home Page: https://roman01la.github.io/virtual.list/

License: Eclipse Public License 1.0

HTML 5.65% Clojure 94.35%
clojurescript prum rum virtual-list

virtual.list's Introduction

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

virtual.list's People

Contributors

roman01la avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.