pikaday
A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.
Please note, this field depend on the following library:
Special properties of field
Property | Default | Accepted values | Description |
| none | Indicates whether the value of the control can be automatically completed by the browser. | |
| none |
| Placeholder text for input field |
|
|
| Settings of component. See details below. |
|
|
| If true, the input field is read only |
pikadayOptions
pikadayOptions
For more details, see the official Pikaday documentation.
Property | Default | Accepted values | Description |
|
|
| Automatically show/hide the datepicker on |
|
|
| Preferred position of the datepicker relative to the form field, e.g.: |
|
|
| Can be set to false to not reposition datepicker within the viewport, forcing it to take the configured |
|
| DOM node | DOM node to render calendar into, see container example |
| null |
| The default output format for |
|
|
| The default flag for moment's strict date parsing (requires Moment.js for custom formatting) |
| null |
| The initial date to view when first opened |
| ? |
| make the |
|
|
| First day of the week (0: Sunday, 1: Monday, etc) |
| null |
| the minimum/earliest date that can be selected (this should be a native Date object - e.g. |
| null |
| the maximum/latest date that can be selected (this should be a native Date object - e.g. |
|
|
| Disallow selection of Saturdays or Sundays |
| null |
| Callback function that gets passed a Date object for each day in view. Should return true to disable selection of that day. |
| null |
| Number of years either side (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 |
|
|
| When |
| null |
| Define a classname that can be used as a hook for styling different themes, see theme example |
Internationalization
The default i18n
configuration format looks like this:
Usage
Simple datepicker:
Last updated