Skip to content

Instantly share code, notes, and snippets.

@jlongster
Created March 1, 2016 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlongster/e9d8ea3a06f8dc3438f6 to your computer and use it in GitHub Desktop.
Save jlongster/e9d8ea3a06f8dc3438f6 to your computer and use it in GitHub Desktop.
(js/React.createElement
(.-VirtualScroll js/ReactVirtualized)
#js {:ref (.-registerChild opts)
:height 100
:rowsCount rowCount
:rowHeight 40
:width 1000
:overscanRowsCount 30
:className "internal-table"
:onRowsRendered (.-onRowsRendered opts)
:rowRenderer
(fn [idx]
(let [trans (get data (- idx start))]
(row-factory
(om/computed
transactions
{:columns columns
:height 40}))))})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment