New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-scrollrefresh

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scrollrefresh

React ScrollRefresh is a React component which enables refresh via scoll

  • 0.11.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-scrollrefresh

React ScrollRefresh is a React component which enables refresh via scoll

npm react-version license-mit

install

npm install react-scrollrefresh --save
propertiestypedescription
heightint/String容器高度,需要设置合适的高度,复杂无法出现滚动条
widthint/String容器宽度
fetchNextDatafunction(currentPos, pageNo)获得下一页数据,currentPos为当前位置,从0开始;pageNo为当前页码,从1开始
synchboolean是否同步执行数据查询,缺省:false
nextDataArray异步(synch=false)时,通过nextData通知组件数据更新,这个数据只包含当前页的数据。
loadingReact Component自定义loading
pageLoadFinishfunction(pageNo)页数据加载完成回调,可以用于加载后nextData清除,如果清空nextData,需要设置为null
renderItemfunction(item, index)自定义Item
renderNoDatafunction自定义无数据界面
wrapperString包装组件,缺省'div'
wrapperClassNameString包装组件ClassName

example

        <ScrollRefresh height={150} width={300}
                       fetchNextData={this.fetchNextData.bind(this)}
                       nextData={this.state.nextData}/>
                       
                       
        <ScrollRefresh height={150} width={300}
                       fetchNextData={this.fetchSynchNextData.bind(this)}
                       synch/>

license

MIT

Keywords

FAQs

Package last updated on 09 Aug 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc