Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-infinite-list
Advanced tools
Changelog
v0.4.5 (2015-11-11)
Check ref existence before touching it in setTimeouts
Readme
A component that displays large list of data efficiently. Reuses DOM elements during scrolling. It uses different rendering approach than [https://github.com/Morhaus/react-list-view] or Ember ListView. Instead of transposing the item rows, it just re-renders the component whenever the top or bottom list item is scrolled out of the visible area.
npm install react-infinite-list --save
# or
bower install react-infinite-list --save
<InfiniteList
items={items}
height={100}
itemHeight={20}
listItemClass={InfiniteListItem}
/>,
items
, height
and itemHeight
are mandatory.
listItemClass
is optional. Rather, it serves for default list item view overriding.
Infinite List supports paging as well. Just set paging={true}
when using
the component. When particular list item has no data instance of default
loadingListItemClass
will be rendered. You can pass your own class using
loadingListItemClass
property.
By default, list item is being loaded when title property of item model is not defined.
If you are using different rules, you need to define your own helper that can
distinguish item being loaded from loaded one. Pass the helper in isItemLoading
property.
In firstVisibleItemIndex
, you can specify which index rendering can start from.
Default is 0.
There are also some mandatory css rules:
.infinite-list {
overflow: auto;
position: relative;
}
.infinite-list-content {
margin: 0;
position: absolute;
}
Clone this repo and run npm i
. After the dependencies are installed, just issue:
npm start
and wait till webpack builds the bundle. Browser shall be opened on port 3000.
npm run web-build
FAQs
React Infinite List =================== A component that displays large list of data efficiently. Reuses DOM elements during scrolling. It uses different rendering approach than [https://github.com/Morhaus/react-list-view] or Ember ListView. Instead of tr
The npm package react-infinite-list receives a total of 6 weekly downloads. As such, react-infinite-list popularity was classified as not popular.
We found that react-infinite-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.