File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ npm install react-select2-wrapper --save
10
10
11
11
## Usage
12
12
13
+ ### Basic usage
14
+
13
15
``` js
14
16
import Select2 from ' react-select2-wrapper' ;
15
17
…
@@ -22,7 +24,8 @@ import Select2 from 'react-select2-wrapper';
22
24
}} / >
23
25
```
24
26
25
- With data as an object
27
+ ### With data as an object
28
+
26
29
``` js
27
30
< Select2
28
31
multiple= {false }
@@ -37,7 +40,8 @@ With data as an object
37
40
}} / >
38
41
```
39
42
40
- With callbacks
43
+ ### With callbacks
44
+
41
45
``` js
42
46
< Select2
43
47
multiple= {true }
@@ -52,7 +56,8 @@ With callbacks
52
56
}} / >
53
57
```
54
58
55
- With default value
59
+ ### With default value
60
+
56
61
``` js
57
62
< Select2
58
63
multiple= {false }
@@ -68,7 +73,7 @@ With default value
68
73
}} / >
69
74
```
70
75
71
- With default multiple value
76
+ ### With default multiple value
72
77
73
78
``` js
74
79
< Select2
@@ -85,6 +90,8 @@ With default multiple value
85
90
}} / >
86
91
```
87
92
93
+ ### Access to select2
94
+
88
95
You can access to select2 as follows
89
96
``` js
90
97
// assign a ref attribute
You can’t perform that action at this time.
0 commit comments