@@ -36,7 +36,7 @@ Basic example:
36
36
37
37
Returns: ` date ` , ` null `
38
38
39
- Fired when the date is changed
39
+ Fired when the date is changed.
40
40
41
41
42
42
@@ -52,7 +52,22 @@ Accepts: `date`, `moment`, `string`
52
52
{{bs-datetimepicker date=myDate}}
53
53
```
54
54
55
- Sets the picker date/time
55
+ Sets the picker date/time.
56
+
57
+
58
+
59
+ #### en/disabledHours
60
+
61
+ Default: ` false `
62
+
63
+ Accepts: ` array ` of [ ` number ` ]
64
+
65
+ ``` handlebars
66
+ {{bs-datetimepicker date=myDate disabledHours=disabledHours}}
67
+ {{bs-datetimepicker date=myDate enabledHours=enabledHours}}
68
+ ```
69
+
70
+ Disables/enables selection of dates in the array.
56
71
57
72
58
73
@@ -66,7 +81,7 @@ Accepts: `boolean`
66
81
{{bs-datetimepicker date=myDate focusOnShow=false}}
67
82
```
68
83
69
- If ` false ` , the textbox will not be given focus when the picker is shown
84
+ If ` false ` , the textbox will not be given focus when the picker is shown.
70
85
71
86
72
87
@@ -115,7 +130,7 @@ Accepts: `string`, `moment.local('locale')`
115
130
{{bs-datetimepicker date=myDate locale='de'}}
116
131
```
117
132
118
- Use the specified locale for text rendering
133
+ Use the specified locale for text rendering.
119
134
120
135
121
136
@@ -129,7 +144,7 @@ Accepts: `date`, `moment`, `string`
129
144
{{bs-datetimepicker date=myDate maxDate=myMaxDate}}
130
145
```
131
146
132
- Prevents date/time selections after this date
147
+ Prevents date/time selections after this date.
133
148
134
149
135
150
@@ -143,7 +158,7 @@ Accepts: `date`, `moment`, `string`
143
158
{{bs-datetimepicker date=myDate minDate=myMinDate}}
144
159
```
145
160
146
- Prevents date/time selections before this date
161
+ Prevents date/time selections before this date.
147
162
148
163
149
164
@@ -157,21 +172,22 @@ Accepts: `array` of [`number`]
157
172
{{bs-datetimepicker daysOfWeekDisabled=daysOfWeekDisabled}}
158
173
```
159
174
160
- Disables selection of days in the array, e.g. sundays
175
+ Disables selection of days in the array, e.g. sundays.
161
176
162
177
163
178
164
- #### disabledDates
179
+ #### en/ disabledDates
165
180
166
181
Default: ` false `
167
182
168
183
Accepts: ` array ` of [ ` date ` , ` moment ` , ` string ` ]
169
184
170
185
``` handlebars
171
186
{{bs-datetimepicker disabledDates=disabledDates}}
187
+ {{bs-datetimepicker enabledDates=enabledDates}}
172
188
```
173
189
174
- Disables selection of dates in the array, e.g. holidays
190
+ Disables/enables selection of dates in the array, e.g. holidays.
175
191
176
192
177
193
@@ -185,7 +201,7 @@ Accepts: `boolean`
185
201
{{bs-datetimepicker date=myDate openOnFocus=true}}
186
202
```
187
203
188
- Opens the picker on input focus
204
+ Opens the picker on input focus.
189
205
190
206
191
207
@@ -215,7 +231,7 @@ Accepts: `boolean`
215
231
```
216
232
217
233
Show the * Close* button in the icon toolbar.
218
- Clicking the * Close* button will call ` hide() `
234
+ Clicking the * Close* button will call ` hide() ` .
219
235
220
236
221
237
@@ -234,6 +250,20 @@ Clicking the *Today* button will set the calendar view and set the date to `now`
234
250
235
251
236
252
253
+ #### sideBySide
254
+
255
+ Default: ` false `
256
+
257
+ Accepts: ` boolean `
258
+
259
+ ``` handlebars
260
+ {{bs-datetimepicker date=myDate sideBySide=true}}
261
+ ```
262
+
263
+ Show calendar and time side by side.
264
+
265
+
266
+
237
267
#### useCurrent
238
268
239
269
Default: ` false `
@@ -278,6 +308,20 @@ The default view to display when the picker is shown.
278
308
279
309
280
310
311
+ #### widgetPositioning
312
+
313
+ Default: ` { horizontal: 'auto', vertical: 'auto' } `
314
+
315
+ Accepts: ` object ` with all or one of the parameters above (horizontal: 'auto', 'left', 'right'; vertical: 'auto', 'top', 'bottom')
316
+
317
+ ``` handlebars
318
+ {{bs-datetimepicker date=myDate widgetPositioning=widgetPositioning}}
319
+ ```
320
+
321
+ Will position widget according to the parameters given in object.
322
+
323
+
324
+
281
325
## License
282
326
283
327
[ MIT License] ( https://github.com/btecu/ember-cli-bootstrap-datetimepicker/blob/master/LICENSE.md )
0 commit comments