Lightweight customizable cross-browser jQuery datepicker, built with es5 and css-flexbox. Works in all modern desktop and mobile browsers (tested on Android 4.4+ and iOS8+).
Forked from http://t1m0n.name/air-datepicker/.
- Refined it to support AMD
- Bugfixing
- New features like pair datepicker. (Datepicker with two selection panel)
[Comming features]
- Accessibility (will support key press like 'tab', 'enter', 'esc')
npm i --save air-datepicker-amd
$('.my-datepicker').datepicker([options])
-
[New feature] Add another type of datepicker, double datepicker, which is a datepicker with two selection panel. With it user can view the start and end date at the same time when they want to choose some time longer than one month.
-
[Refine] Include gulp babel into build process.
-
[Refine] Add inst to onChangeMonth callback
- trigger onChangeMonth function while change view from 'year' to 'month'.
- refine datepicker to update view when mouse leave datepicker content body, so that 'in-range' classes won't be preserved when the mouse is no longer hover on datepicker after selecting one date when 'range' = true.
- refine build tasks for i18n so that jQuery won't be assumed as global variable; fix the bug that disabled navigation button (prev/next) is still clickable when change style to 'visibility = visible'.
- support AMD for datepicker.en.js; fix the bug that when 'showOtherMonths' = false and other-month cell is still clickable.
- support AMD for body.js, datepicker.js, timepicker.js and navigation.js