You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-15
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ React-Select
10
10
A Select control built with and for [React](http://facebook.github.io/react/index.html). Initially built for use in [KeystoneJS](http://www.keystonejs.com).
11
11
12
12
13
-
## New version 1.0.0-rc
13
+
## New version 1.0.1-rc
14
14
15
15
I've nearly completed a major rewrite of this component (see issue [#568](https://github.com/JedWatson/react-select/issues/568) for details and progress). The new code has been merged into `master`, and `[email protected]` has been published to npm and bower.
16
16
@@ -19,13 +19,8 @@ I've nearly completed a major rewrite of this component (see issue [#568](https:
19
19
Testing, feedback and PRs for the new version are appreciated.
20
20
21
21
22
-
## Demo & Examples
22
+
## Examples
23
23
24
-
Live demo: [jedwatson.github.io/react-select](http://jedwatson.github.io/react-select/)
25
-
26
-
The live demo is still running `v0.9.1`.
27
-
28
-
To build the **new 1.0.0** examples locally, clone this repo then run:
29
24
30
25
```javascript
31
26
npm install
@@ -40,13 +35,13 @@ Then open [`localhost:8000`](http://localhost:8000) in a browser.
40
35
The easiest way to use React-Select is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), etc).
41
36
42
37
```javascript
43
-
npm install react-select--save
38
+
npm install smb-react-selection--save
44
39
```
45
40
46
41
At this point you can import react-select and its styles in your application as follows:
47
42
48
43
```js
49
-
importSelectfrom'react-select';
44
+
importSelectfrom'smb-react-selection';
50
45
51
46
// Be sure to include styles at some point, probably during your bootstrapping
52
47
import'react-select/dist/react-select.css';
@@ -157,7 +152,7 @@ Everything that applies to `loadOptions` with callbacks still applies to the Pro
157
152
An example using the `fetch` API and ES6 syntax, with an API that returns an object like:
If you want to load options asynchronously externally from the `Select` component, you can have the `Select` component show a loading spinner by passing in the `isLoading` prop set to `true`.
189
184
190
185
```javascript
191
-
var Select =require('react-select');
186
+
var Select =require('smb-react-selection');
192
187
193
188
var isLoadingExternally =true;
194
189
@@ -206,7 +201,7 @@ It decorates a `Select` and so it supports all of the default properties (eg sin
// props can be a mix of Async, Creatable, and Select properties
@@ -390,6 +385,7 @@ function onInputKeyDown(event) {
390
385
value | any | undefined | initial field value
391
386
valueKey | string | 'value' | the option property to use for the value
392
387
valueRenderer | func | undefined | function which returns a custom way to render the value selected `function (option) {}`
388
+
showSelectedCount | bool | false | Used with inputRenderer inorder to show one selected item for multi selected list
393
389
394
390
### Methods
395
391
@@ -402,11 +398,11 @@ Right now there's simply a `focus()` method that gives the control focus. All ot
402
398
403
399
# Contributing
404
400
405
-
See our [CONTRIBUTING.md](https://github.com/JedWatson/react-select/blob/master/CONTRIBUTING.md) for information on how to contribute.
401
+
See our [CONTRIBUTING.md](https://github.com/jazibjohar/react-select/blob/master/CONTRIBUTING.md) for information on how to contribute.
406
402
407
403
Thanks to the projects this was inspired by: [Selectize](http://brianreavis.github.io/selectize.js/) (in terms of behaviour and user experience), [React-Autocomplete](https://github.com/rackt/react-autocomplete) (as a quality React Combobox implementation), as well as other select controls including [Chosen](http://harvesthq.github.io/chosen/) and [Select2](http://ivaynberg.github.io/select2/).
0 commit comments