You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2019. It is now read-only.
Days of the week that should be disabled. Values are 0 (Sunday) to 6 (Saturday). Multiple values should be
104
+
comma-separated. Example: disable weekends: `'06'` or `'0,6'` or `[0,6]`.
105
+
81
106
Type: `Array` or `String`
82
107
Default: `""` or `[]`
83
108
@@ -87,6 +112,8 @@ Default: `""` or `[]`
87
112
88
113
#### endDate
89
114
115
+
The latest date that may be selected; all later dates will be disabled.
116
+
90
117
Type: `Date` or `String`
91
118
Default: `Infinity` (end of time)
92
119
@@ -96,6 +123,10 @@ Default: `Infinity` (end of time)
96
123
97
124
#### forceParse
98
125
126
+
Whether or not to force parsing of the input value when the picker is closed. That is, when an invalid date
127
+
is left in the input field by the user, the picker will forcibly parse that value, and set the input’s value
128
+
to the new, valid date, conforming to the given format.
129
+
99
130
Type: `Boolean`
100
131
Default: `true`
101
132
@@ -105,6 +136,14 @@ Default: `true`
105
136
106
137
#### format
107
138
139
+
The date format, combination of d, dd, D, DD, m, mm, M, MM, yy, yyyy.
140
+
141
+
* d, dd: Numeric date, no leading zero and leading zero, respectively. Eg, 5, 05.
142
+
* D, DD: Abbreviated and full weekday names, respectively. Eg, Mon, Monday.
143
+
* m, mm: Numeric month, no leading zero and leading zero, respectively. Eg, 7, 07.
144
+
* M, MM: Abbreviated and full month names, respectively. Eg, Jan, January
145
+
* yy, yyyy: 2- and 4-digit years, respectively. Eg, 12, 2012.
146
+
108
147
Type: `String`
109
148
Default: `'mm/dd/yyyy'`
110
149
@@ -114,6 +153,8 @@ Default: `'mm/dd/yyyy'`
114
153
115
154
#### keyboardNavigation
116
155
156
+
Whether or not to allow date navigation by arrow keys.
157
+
117
158
Type: `Boolean`
118
159
Default: `true`
119
160
@@ -123,22 +164,34 @@ Default: `true`
123
164
124
165
#### language
125
166
126
-
Type: `String`
127
-
Default: `'en'`
167
+
The IETF code (eg “en” for English, “pt-BR” for Brazilian Portuguese) of the language to use for month and day
168
+
names. These will also be used as the input’s value (and subsequently sent to the server in the case of form
169
+
submissions). If a full code (eg “de-DE”) is supplied the picker will first check for an “de-DE” language and
170
+
if not found will fallback and check for a “de” language. If an unknown language code is given, English will
171
+
be used.
128
172
129
173
When you need another language, you should import a locale file using your Brocfile.js. Just import `bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.<LANGUAGE_CODE>.js`, e.g.:
Set a minimum limit for the view mode. Accepts: “days” or 0, “months” or 1, “years” or 2, “decades” or 3, and
191
+
“centuries” or 4. Gives the ability to pick only a month, a year or a decade. The day is set to the 1st for “months”,
192
+
and the month is set to January for “years”, the year is set to the first year from the decade for “decades”, and
193
+
the year is set to the first from the millennium for “centuries”.
194
+
142
195
Type: `Number` or `String`
143
196
Default: `0` or `'days'`
144
197
@@ -148,6 +201,17 @@ Default: `0` or `'days'`
148
201
149
202
#### orientation
150
203
204
+
A space-separated string consisting of one or two of “left” or “right”, “top” or “bottom”, and “auto” (may be
205
+
omitted); for example, “top left”, “bottom” (horizontal orientation will default to “auto”), “right” (vertical
206
+
orientation will default to “auto”), “auto top”. Allows for fixed placement of the picker popup.
207
+
208
+
“orientation” refers to the location of the picker popup’s “anchor”; you can also think of it as the location of
209
+
the trigger element (input, component, etc) relative to the picker.
210
+
211
+
“auto” triggers “smart orientation” of the picker. Horizontal orientation will default to “left” and left offset
212
+
will be tweaked to keep the picker inside the browser viewport; vertical orientation will simply choose “top” or
213
+
“bottom”, whichever will show more of the picker in the viewport.
214
+
151
215
Type: `String`
152
216
Default: `'auto'`
153
217
@@ -157,6 +221,8 @@ Default: `'auto'`
157
221
158
222
#### startDate
159
223
224
+
The earliest date that may be selected; all earlier dates will be disabled.
225
+
160
226
Type: `Date` or `String`
161
227
Default: `-Infinity` (beginning of time)
162
228
@@ -166,6 +232,10 @@ Default: `-Infinity` (beginning of time)
166
232
167
233
#### startView
168
234
235
+
The view that the datepicker should show when it is opened. Accepts values of 0 or “month” for month view (the
236
+
default), 1 or “year” for the 12-month overview, 2 or “decade” for the 10-year overview, 3 or “century” for the
237
+
10-decade overview, and 4 or “millennium” for the 10-century overview. Useful for date-of-birth datepickers.
238
+
169
239
Type: `Number` or `String`
170
240
Default: `0` or `'month'`
171
241
@@ -175,17 +245,21 @@ Default: `0` or `'month'`
175
245
176
246
#### todayBtn
177
247
248
+
If true or “linked”, displays a “Today” button at the bottom of the datepicker to select the current date.
249
+
If true, the “Today” button will only move the current date into view; if “linked”, the current date will
250
+
also be selected.
251
+
178
252
Type: `Boolean` or `String`
179
253
Default: `false`
180
254
181
-
> If true or “linked”, displays a “Today” button at the bottom of the datepicker to select the current date. If true, the “Today” button will only move the current date into view; if “linked”, the current date will also be selected. [More...](http://bootstrap-datepicker.readthedocs.org/en/latest/options.html#todaybtn)
0 commit comments