This repository was archived by the owner on Jul 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ DateTimeField
37
37
| ** onChange** | function | x => console.log(x) | Callback trigger when the date changes |
38
38
| ** showToday** | boolean | true | Highlights today's date |
39
39
| ** daysOfWeekDisabled** | array of integer | [ ] | Disables clicking on some days. Goes from 0 (Sunday) to 6 (Saturday). |
40
- | ** viewMode ** | string or number | 'days' | The default view to display when the picker is shown. ('years', 'months', 'days') |
40
+ | ** viewMode** | string or number | 'days' | The default view to display when the picker is shown. ('years', 'months', 'days') |
41
+ | ** inputProps** | object | undefined | Defines additional attributes for the input element of the component. |
41
42
42
43
Update Warning
43
44
===============================
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ DateTimeField = React.createClass({
13
13
dateTime : React . PropTypes . string ,
14
14
onChange : React . PropTypes . func ,
15
15
format : React . PropTypes . string ,
16
- inputFormat : React . PropTypes . string
16
+ inputFormat : React . PropTypes . string ,
17
+ inputProps : React . PropTypes . object
17
18
} ,
18
19
getDefaultProps : function ( ) {
19
20
return {
@@ -285,7 +286,7 @@ DateTimeField = React.createClass({
285
286
togglePeriod = { this . togglePeriod }
286
287
/>
287
288
< div className = "input-group date" ref = "datetimepicker" >
288
- < input type = "text" className = "form-control" onChange = { this . onChange } value = { this . state . inputValue } />
289
+ < input type = "text" className = "form-control" onChange = { this . onChange } value = { this . state . inputValue } { ... this . props . inputProps } />
289
290
< span className = "input-group-addon" onClick = { this . onClick } onBlur = { this . onBlur } ref = "dtpbutton" > < Glyphicon glyph = "calendar" /> </ span >
290
291
</ div >
291
292
</ div >
You can’t perform that action at this time.
0 commit comments