Package Exports
- react-list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-list
A versatile infinite scroll React component.
Install
bower install react-list
# or
npm install react-listComponents
reactList.List
itemRenderer(index, key)
A function that receives an index and a key and returns the content to be rendered for the item at that index.
itemsRenderer(items, ref)
A function that receives the rendered items and a ref. By default this element
is just a <div>. Generally it only needs to be overriden for use in a
<table> or other special case. NOTE: You must set ref={ref} on the component
that contains the items so the correct item sizing calculations can be made.
length
The number of items in the list.
pageSize (defaults to 10)
The number of items to batch up for new renders.
threshold (defaults to 500)
The number of pixels to ensure the bottom of the list is buffered with.
reactList.UniformList
Has the same properties as List, but pageSize and threshold are ignored.
Examples
Check out the test file for examples of both the List and UniformList components.