Automatically show/hide the datepicker on
field focus (default
field is set)
Preferred position of the datepicker relative to the form field, e.g.:
bottom right Note: automatic adjustment may occur to avoid datepicker from being displayed outside the viewport, see positions example
Can be set to false to not reposition datepicker within the viewport, forcing it to take the configured
The default output format for
field value (requires Moment.js for custom formatting)
The default flag for moment's strict date parsing (requires Moment.js for custom formatting)
The initial date to view when first opened
defaultDate the initial selected value
First day of the week (0: Sunday, 1: Monday, etc)
the minimum/earliest date that can be selected (this should be a native Date object - e.g.
new Date() or
the maximum/latest date that can be selected (this should be a native Date object - e.g.
new Date() or
Disallow selection of Saturdays or Sundays
Callback function that gets passed a Date object for each day in view. Should return true to disable selection of that day.
Number of years either side (e.g.
10) or array of upper/lower range (e.g.
Show the ISO week number at the head of the row
Reverse the calendar for right-to-left languages
Language defaults for month and weekday names (see internationalization below)
Additional text to append to the year in the title
Render the month after year in the title
Render days of the calendar grid that fall in the next or previous months to the current month instead of rendering an empty table cell
Number of visible calendars
numberOfMonths is used, this will help you to choose where the main calendar will be. Only used for the first display or when a selected date is not already visible
Define a classname that can be used as a hook for styling different themes, see theme example