nodep-date-input-polyfill-danish
v2.4.4
Published
Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari.
Downloads
2
Readme
nodep-date-input-polyfill
Just include this simple script and IE, Firefox, and OS X Safari will support <input type="date">
, without any dependencies, not even jQuery!
Support dynamically created inputs, so can be used in single page applications.
Forked from nodep-date-input-polyfill to translate.
Install
npm install --save nodep-date-input-polyfill-danish
Add to your project:
Webpack/Browserify:
require('nodep-date-input-polyfill-danish');
or alongside Babel:
import 'nodep-date-input-polyfill-danish';
Script Tag: Copy
nodep-date-input-polyfill.dist.js
fromnode_modules
and include it anywhere in your HTML.
Features
Easily Stylable: These are the default styles, which you may override with your own.
Polyfills
valueAsDate
andvalueAsNumber
: Learn more about these properties. They behave as getters and setters.Keyboard Shortcuts:
Esc
will hide the datepicker.Up/Down
will increment/decrement the date by one day.
Contributing
Local Development
Run webpack-dev-server --host $IP --port $PORT
Build
Run webpack --devtool=none