0.9.0 • Published 4 years ago

antd-select-infinte-scroll v0.9.0

Weekly downloads
21
License
MIT*
Repository
github
Last release
4 years ago

antd-select-infinte-scroll

Infinite scrolling ant design select component

NPM JavaScript Style Guide

Install

npm install --save antd-select-infinte-scroll

Usage

import React, { Component } from 'react'

import MyComponent from 'antd-select-infinte-scroll'

class Example extends Component {
	render() {
		return <InfiniteScrollSelect style={{ width: '400px' }} data={data} hasMore={page > 5 ? false : true} loadMore={this.getMoreData} />
	}
}

props

nametyperequireddefaultdescription
dataarray (of objects)true[]array of dropdown data, each element must be object with properties {label,value}
hasMorebooleanfalsefalseif true data loaded on scroll
loadMorefunctiontruenullfunction to get next data, please manage page number in this function

License

MIT © mrinalraj

0.9.0

4 years ago

0.8.0

4 years ago

0.5.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago