@@ -50,14 +50,26 @@ const App = React.createClass({
50
50
</ Col >
51
51
</ Row >
52
52
< Row >
53
- < Col xs = { 12 } >
53
+ < Col xs = { 6 } >
54
54
< h2 > Change Handler</ h2 >
55
55
</ Col >
56
+ < Col xs = { 6 } >
57
+ < h2 > Disabled</ h2 >
58
+ </ Col >
56
59
</ Row >
57
60
< Row >
58
61
< Col sm = { 6 } >
59
62
< FormGroup controlId = "change_handler" >
63
+ < ControlLabel > Change Handler</ ControlLabel >
60
64
< DatePicker onChange = { this . handleChange } placeholder = "Placeholder" value = { this . state . date } id = "change_handler_example" />
65
+ < HelpBlock > Help</ HelpBlock >
66
+ </ FormGroup >
67
+ </ Col >
68
+ < Col sm = { 6 } >
69
+ < FormGroup controlId = "disabled" >
70
+ < ControlLabel > Disabled</ ControlLabel >
71
+ < DatePicker disabled = { true } onChange = { this . handleChange } placeholder = "Placeholder" value = { this . state . date } id = "disabled_example" />
72
+ < HelpBlock > Help</ HelpBlock >
61
73
</ FormGroup >
62
74
</ Col >
63
75
</ Row >
@@ -147,35 +159,44 @@ const App = React.createClass({
147
159
</ Col >
148
160
</ Row >
149
161
< Row >
150
- < Col sm = { 3 } >
151
- < FormGroup >
152
- < ControlLabel > Clear Button</ ControlLabel >
153
- < DatePicker placeholder = "Placeholder" clearButtonElement = { < Glyphicon glyph = "star" /> } />
154
- < HelpBlock > Help</ HelpBlock >
155
- </ FormGroup >
156
- </ Col >
157
- < Col sm = { 3 } >
162
+ < Col sm = { 4 } >
158
163
< FormGroup >
159
164
< ControlLabel > Previous / Next Buttons</ ControlLabel >
160
165
< DatePicker placeholder = "Placeholder" previousButtonElement = { < Glyphicon glyph = "star" /> } nextButtonElement = { < Glyphicon glyph = "star" /> } />
161
166
< HelpBlock > Help</ HelpBlock >
162
167
</ FormGroup >
163
168
</ Col >
164
- < Col sm = { 3 } >
169
+ < Col sm = { 4 } >
165
170
< FormGroup >
166
171
< ControlLabel > Padding</ ControlLabel >
167
172
< DatePicker placeholder = "Placeholder" cellPadding = "10px" />
168
173
< HelpBlock > Help</ HelpBlock >
169
174
</ FormGroup >
170
175
</ Col >
171
- < Col sm = { 3 } >
176
+ < Col sm = { 4 } >
172
177
< FormGroup >
173
178
< ControlLabel > Day and Month Labels</ ControlLabel >
174
179
< DatePicker placeholder = "Placeholder" dayLabels = { spanishDayLabels } monthLabels = { spanishMonthLabels } />
175
180
< HelpBlock > Help</ HelpBlock >
176
181
</ FormGroup >
177
182
</ Col >
178
183
</ Row >
184
+ < Row >
185
+ < Col sm = { 6 } >
186
+ < FormGroup >
187
+ < ControlLabel > Clear Button</ ControlLabel >
188
+ < DatePicker placeholder = "Placeholder" clearButtonElement = { < Glyphicon glyph = "star" /> } />
189
+ < HelpBlock > Help</ HelpBlock >
190
+ </ FormGroup >
191
+ </ Col >
192
+ < Col sm = { 6 } >
193
+ < FormGroup controlId = "no_clear_button" >
194
+ < ControlLabel > No Clear Button</ ControlLabel >
195
+ < DatePicker placeholder = "Placeholder" showClearButton = { false } />
196
+ < HelpBlock > Help</ HelpBlock >
197
+ </ FormGroup >
198
+ </ Col >
199
+ </ Row >
179
200
< Row >
180
201
< Col xs = { 12 } >
181
202
< h2 > Placement</ h2 >
@@ -289,19 +310,6 @@ const App = React.createClass({
289
310
</ FormGroup >
290
311
</ Col >
291
312
</ Row >
292
- < Row >
293
- < Col xs = { 12 } >
294
- < h2 > No clear button visible</ h2 >
295
- </ Col >
296
- </ Row >
297
- < Row >
298
- < Col sm = { 6 } >
299
- < FormGroup controlId = "no_clear_button" >
300
- < DatePicker placeholder = "Placeholder" value = { this . state . date }
301
- id = "no_clear_button_example" showClearButton = { false } />
302
- </ FormGroup >
303
- </ Col >
304
- </ Row >
305
313
</ Grid > ;
306
314
}
307
315
} ) ;
0 commit comments