File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,20 @@ to current moment (if `true`). Granularity can be specified as a `string`.
207
207
208
208
209
209
210
+ #### viewDate
211
+
212
+ Default: ` false `
213
+
214
+ Accepts: ` date ` , ` moment ` , ` string `
215
+
216
+ ``` handlebars
217
+ {{bs-datetimepicker date=myDate viewDate=customDate}}
218
+ ```
219
+
220
+ Pre-set the date / time, allowing to change default time from 12:00 AM.
221
+
222
+
223
+
210
224
#### viewMode
211
225
212
226
Default: ` days `
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export default Component.extend({
51
51
showClose : this . getWithDefault ( 'showClose' , defaults . showClose ) ,
52
52
showTodayButton : this . getWithDefault ( 'showTodayButton' , defaults . showTodayButton ) ,
53
53
useCurrent : this . getWithDefault ( 'useCurrent' , false ) ,
54
+ viewDate : this . getWithDefault ( 'viewDate' , defaults . viewDate ) ,
54
55
viewMode : this . getWithDefault ( 'viewMode' , defaults . viewMode )
55
56
} ) . on ( 'dp.change' , e => {
56
57
// Convert moment to js date or default to null
You can’t perform that action at this time.
0 commit comments