1.1.2 • Published 8 years ago

react-autocomplete-component v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

react-autocomplete-component

A simple auto-complete component with onOpen, onClose, and onSelect callbacks

NPM

forthebadge

###How to use it:

  <Autocomplete options={..} onOpen={..} onClose={..} onSelect={..} caseSensitive={} maxOptions={}  />

Demo

###Options:

NameDescription
optionsarray of values that will be used for the autocomplete
onOpencallback function that will be called when the list of options opens
onClosecallback function that will be called when the list of options closes
onSelectcallback function that will be called when an option is selected, the value is passed as the first parameter to the function
inputStyleoverrides the default style for the input
optionStyleoverrides the default style for the options
optionsContainerStyleoverrides the default style for the options container
selectedStyleoverrides the default style for the selected option
caseSensitive (default true)determines if the filtering will be case sensitive
maxOptionsdetermines how many options will be showed to the user

###Changelog:

25-02-2016 Release version 1.1.0

18-01-2016 Release version 1.1.0

21-12-2015 Release version 1.0.0

Contribute

Any pull-request is more than welcome :boom: :smile:

License

MIT

Bitdeli Badge

1.1.2

8 years ago

1.1.1

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago