The last Date-Input-Polyfill you will ever need. Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari. Configurable localization and start of week day.
npm install configurable-date-input-polyfill
The last date-input polyfill you will ever need. A fancy and lightweight datepicker with a high number of configuration options for all needs. Supports any calendar format and contains a large amount of localizations.
, without any dependencies, not even jQuery!
Up/Down/Left/Right to increment/decrement the selected date.
Esc to hide the datepicker.
lang attribute of the input element. The Localisation is easy to extend with own items.
min and max attributes.
date-format or data-date-format attribute of the input element.
data-first-day attribute you
sa,su or mo.
date-polyfill.
valueAsDate and valueAsNumber.
npm install --save configurable-date-input-polyfill
require('configurable-date-input-polyfill');
import 'configurable-date-input-polyfill';
configurable-date-input-polyfill.dist.js from node_modules and
html
`
* This package supports AMD.
Localization
* You can easily set a specific locale for each date input. The list of available languages can easily be extended by your own.
`html
`
Min and Max
* By setting the min and max attributes you can change the range of available date options. In case you are faced with an input without type date, it is recommended to use data-min and data-max.
`html
`
Formatting
* You can easily specify the display format by setting either the
date-format or data-date-format attribute of the input element. The default format is yyyy-mm-dd.
Available options list.
`html
`
First day of the Week (Matrix Formatting)
* Specify the first day of the week. You can use the data-first-day attribute to change the day the week starts between Saturday, Sunday, and Monday.
`html
`
Force Polyfill
* Ensure a consistent date input experience across all browsers by forcing the use of the polyfill.
To do this you have to add data-force-polyfill="true" to an specific date input element.
`html
`
Browser support
#### Desktop
* Chrome
* Safari
* Firefox
* Opera
* Edge
* Internet Explorer 10+
#### Mobile
* iOS Safari 7+
* Samsung Internet 11+
---
Contributing
Feel free to contribute. Whether it's a feature request or a pull request, any type of contribution is welcome.
$3
* To start modifying the project, you will need to run npm install in the package folder.
* After modifying the project files, you will need to run npm run build to apply your changes.
* It is recommended to use npm run watch when making large changes.
$3
* When your changes are ready to be used in production, you need to run npm run production`.