File tree Expand file tree Collapse file tree 2 files changed +754
-588
lines changed Expand file tree Collapse file tree 2 files changed +754
-588
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ var exampleComponent = React.createClass({
12
12
new_date : null ,
13
13
bound_date : null ,
14
14
example5Selected : null ,
15
- example6Selected : null
15
+ example6Selected : null ,
16
+ custom_popover_date : moment ( )
16
17
} ;
17
18
} ,
18
19
@@ -52,6 +53,12 @@ var exampleComponent = React.createClass({
52
53
} ) ;
53
54
} ,
54
55
56
+ handleCustomPopoverChange : function ( date ) {
57
+ this . setState ( {
58
+ custom_popover_date : date
59
+ } ) ;
60
+ } ,
61
+
55
62
render : function ( ) {
56
63
return < div >
57
64
< DatePicker
@@ -100,6 +107,14 @@ var exampleComponent = React.createClass({
100
107
disabled = { true }
101
108
placeholderText = "This is disabled"
102
109
/>
110
+ < DatePicker
111
+ key = "example8"
112
+ selected = { this . state . custom_popover_date }
113
+ onChange = { this . handleCustomPopoverChange }
114
+ popoverAttachment = "bottom center"
115
+ popoverTargetAttachment = "top center"
116
+ popoverTargetOffset = "0px 0px"
117
+ />
103
118
</ div > ;
104
119
}
105
120
} ) ;
You can’t perform that action at this time.
0 commit comments