semantic-react-with-options

0.5.0 • Public • Published

This package was bootstrapped with Create React App.

This package is support Dropdown component in Semantic-UI-React (https://react.semantic-ui.com/modules/dropdown/)

Usage

This package handle load options for Dropdown component from restful API

Available HOCs

In the package, you can using HOCs:

withOptions

The HOC can help Dropdown component load options in componentDidMount and componentWillReceiveProps

withRemoteOptions

The HOC can help Dropdown component load options when user focus Dropdown and when user enter search keyword

This is lazy load with pagination

Run Demo

npm start

You can clone the repo https://github.com/tannvdts/semantic-react-with-options

And run demo with : npm start

How to use

import { withOptions, withRemoteOptions } from 'semantic-react-with-options'

You can see code demo in:

https://github.com/tannvdts/semantic-react-with-options/blob/master/src/demo/LocationDropdown.js

and

https://github.com/tannvdts/semantic-react-with-options/blob/master/src/demo/App.js

Readme

Keywords

none

Package Sidebar

Install

npm i semantic-react-with-options

Weekly Downloads

2

Version

0.5.0

License

none

Unpacked Size

105 kB

Total Files

26

Last publish

Collaborators

  • tannvdts