All Projects → thundernet8 → React-Limited-Infinite-Scroll

thundernet8 / React-Limited-Infinite-Scroll

Licence: MIT license
A limited infinite scroll component for React(React有限无限加载组件)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React-Limited-Infinite-Scroll

react-infinite-scroller
⏬ Infinite scroll component for React in ES6
Stars: ✭ 3,064 (+8181.08%)
Mutual labels:  react-component, infinite-scroll
react-example-paginated-list-infinite-scroll
Follow a React tutorial series with three parts to build a powerful component in React.
Stars: ✭ 43 (+16.22%)
Mutual labels:  react-component, infinite-scroll
react-tabllist
React-based customizable style table or list components that support event and callback functions.
Stars: ✭ 20 (-45.95%)
Mutual labels:  react-component, infinite-scroll
Vegile
This tool will setting up your backdoor/rootkits when backdoor already setup it will be hidden your spesisifc process,unlimited your session in metasploit and transparent. Even when it killed, it will re-run again. There always be a procces which while run another process,So we can assume that this procces is unstopable like a Ghost in The Shell
Stars: ✭ 601 (+1524.32%)
Mutual labels:  infinite-scroll
fhir-questionnaire-render-react
Render FHIR Questionnaire as a web form using FHIRFormJS
Stars: ✭ 18 (-51.35%)
Mutual labels:  react-component
react-credit-cards
Beautiful credit cards for your payment forms
Stars: ✭ 2,386 (+6348.65%)
Mutual labels:  react-component
antony-nuxt
👏 Codes that Power ouorz.com | A Tiny Little Nuxt.js + WP REST API App 博客前端
Stars: ✭ 21 (-43.24%)
Mutual labels:  infinite-scroll
VOSviewer-Online
VOSviewer Online is a tool for network visualization. It is a web-based version of VOSviewer, a popular tool for constructing and visualizing bibliometric networks.
Stars: ✭ 44 (+18.92%)
Mutual labels:  react-component
react-material-datetimepicker
Material DateTime Picker для React.js
Stars: ✭ 12 (-67.57%)
Mutual labels:  react-component
react-drag-list
A simple draggable list component。
Stars: ✭ 30 (-18.92%)
Mutual labels:  react-component
react-table-filter
Create Filters on table column items(like Excel)
Stars: ✭ 54 (+45.95%)
Mutual labels:  react-component
esn
这是一个常用js小型工具库
Stars: ✭ 15 (-59.46%)
Mutual labels:  react-component
react-crossfade-image
react-crossfade-image - Simple React component for crossfading images - No CSS needed
Stars: ✭ 33 (-10.81%)
Mutual labels:  react-component
react-crud-icons
57 SVG icons for CRUD applications, packaged as a React component with light & dark themes and tooltip.
Stars: ✭ 19 (-48.65%)
Mutual labels:  react-component
magento-2-infinite-scroll
Magepow Infinite Scroll extension Free hepls website loading content and products without reloading page
Stars: ✭ 17 (-54.05%)
Mutual labels:  infinite-scroll
ember-simple-infinite-scroller
📜 Simple infinite scroll component for Ember apps
Stars: ✭ 35 (-5.41%)
Mutual labels:  infinite-scroll
react-simple-image-slider
simple image slider component for react
Stars: ✭ 127 (+243.24%)
Mutual labels:  react-component
react-parallax-card
[wip] React component for a 3D card with parallax effects similar to Apple TV app icons.
Stars: ✭ 21 (-43.24%)
Mutual labels:  react-component
react-timepicker
React timepicker in Android KitKat style
Stars: ✭ 23 (-37.84%)
Mutual labels:  react-component
animation-wrapper-view
Declarative animations with imperative controls for RN/RNW.
Stars: ✭ 53 (+43.24%)
Mutual labels:  react-component

中文 README

Limited Infinite Scroll

React infinite scroll loader component, mannual loader will replace auto-loader when the page reach the limit(Because some users do not like infinite loading all pages, maybe they just want to see the footer)

Demo

Installation

npm install react-limited-infinite-scroll --save-dev

Usage

import LimitedInfiniteScroll from 'react-limited-infinite-scroll'

const { total, list } = this.props.data

const items = list.map((item, index) => {
    return (
        <div key={index}>
            <div>item content</div>
        </div>
    )
})

<LimitedInfiniteScroll 
    limit={5} 
    hasMore={total === undefined || items.length < total}
    spinLoader={<div className="loader">Loading...</div>}
    mannualLoader={<span style={{fontSize: 20, lineHeight: 1.5, marginTop: 20, marginBottom: 20, display: 'inline-block'}}>Load More</span>}
    noMore={<div className="loader">No More Items</div>} 
    loadNext={this.loadNextFunc}>
    {items}
</LimitedInfiniteScroll>

Props

Name Type Default Description
limit Number 10 a load more button will replace auto-loader when pages reach the limit
pageStart Number 0 start page number
threshold Number 200 The distance in pixels before the end of the items that will trigger a call to loadNext
hasMore Boolean false Whether there are more items to be loaded
autoLoad Boolean true Whether the component should load the first set of items
useWindow Boolean true Add scroll listeners to the window, or else, the component's parentNode
loadNext Function A callback for loading next set of items
spinLoader Element auto loading indicator
mannualLoader Element mannual load-more button
noMore Element null indicator for no more items

Others

For React 15.5+ users, install v2.x.x

npm install react-limited-infinite-scroll --save-dev

or install v1.x.x

npm install react-limited-infinite-scroll@~1.0.0 --save-dev
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].