Skip to content

Commit cd6224b

Browse files
committed
Re-order instructions
1 parent 3533af1 commit cd6224b

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

README.md

+33-32
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,36 @@ Sets the picker date/time.
5656

5757

5858

59-
#### en/disabledHours
59+
#### daysOfWeekDisabled
60+
61+
Default: []
62+
63+
Accepts: `array` of [`number`]
64+
65+
```handlebars
66+
{{bs-datetimepicker daysOfWeekDisabled=daysOfWeekDisabled}}
67+
```
68+
69+
Disables selection of days in the array, e.g. sundays.
70+
71+
72+
73+
#### disabledDates / enabledDates
74+
75+
Default: `false`
76+
77+
Accepts: `array` of [`date`, `moment`, `string`]
78+
79+
```handlebars
80+
{{bs-datetimepicker disabledDates=disabledDates}}
81+
{{bs-datetimepicker enabledDates=enabledDates}}
82+
```
83+
84+
Disables / enables selection of dates in the array, e.g. holidays.
85+
86+
87+
88+
#### disabledHours / enabledHours
6089

6190
Default: `false`
6291

@@ -67,7 +96,7 @@ Accepts: `array` of [`number`]
6796
{{bs-datetimepicker date=myDate enabledHours=enabledHours}}
6897
```
6998

70-
Disables/enables selection of dates in the array.
99+
Disables / enables selection of hours in the array, affecting all days.
71100

72101

73102

@@ -162,35 +191,6 @@ Prevents date/time selections before this date.
162191

163192

164193

165-
#### daysOfWeekDisabled
166-
167-
Default: []
168-
169-
Accepts: `array` of [`number`]
170-
171-
```handlebars
172-
{{bs-datetimepicker daysOfWeekDisabled=daysOfWeekDisabled}}
173-
```
174-
175-
Disables selection of days in the array, e.g. sundays.
176-
177-
178-
179-
#### en/disabledDates
180-
181-
Default: `false`
182-
183-
Accepts: `array` of [`date`, `moment`, `string`]
184-
185-
```handlebars
186-
{{bs-datetimepicker disabledDates=disabledDates}}
187-
{{bs-datetimepicker enabledDates=enabledDates}}
188-
```
189-
190-
Disables/enables selection of dates in the array, e.g. holidays.
191-
192-
193-
194194
#### openOnFocus
195195

196196
Default: `false`
@@ -312,7 +312,8 @@ The default view to display when the picker is shown.
312312

313313
Default: `{ horizontal: 'auto', vertical: 'auto' }`
314314

315-
Accepts: `object` with all or one of the parameters above (horizontal: 'auto', 'left', 'right'; vertical: 'auto', 'top', 'bottom')
315+
Accepts: `object` with one or all of the parameters above
316+
(horizontal: 'auto', 'left', 'right' / vertical: 'auto', 'top', 'bottom')
316317

317318
```handlebars
318319
{{bs-datetimepicker date=myDate widgetPositioning=widgetPositioning}}

0 commit comments

Comments
 (0)