Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gitpadtech/rlist-view

Open more actions menu

Repository files navigation

rlist-view

install

npm i @gitpad/rlist-view

props

  • height: height of your view, can be any valid height in css
  • refresh: A function that return a promise to tell me you have loaded new data(I will hide your refresh component when promise resolved)
  • loadMore: A function that return a promise to tell me you have loaded new data(I will hide your loadMore component when promise resolved)
  • refreshComponent: Customed refresh component, discover more in my example code
  • loadMoreComponent: Customed loadMore component, discover more in my example code
  • threshold to start loadMore, it's (10px) by default
  • useWindowScroll: use the y position of window scrollbar to calculate load more behavior
  • disableInfiniteScroll: close load more feature, when you have loaded all data, you should set this prop to true
  • disableRefresh: close refresh data feature

股多多

About

List view for react with pulling refresh and infinite data load.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.