- added Japanese locale, thanks to kyong0612, in #505
- added Korean locale, thanks to YankeeTube, in #506
- new feature that allow you to add custom attributes via
onRenderCell
#502, read docs - fixed selecting cell when using custom html with
onRenderCell
option #502
- added
onClickDayName
option, #459 - added
silent
param toclear
method, #477 - added Swedish locale, thanks to naton #207
- fixed error when trying to call
update
method withview
parameter on hidden calendar, #476 - fixed styles issue with time sliders, #489
- fixed English docs description, #490
- fixed typings for
formatDate
method, #491
- fixed css compilation, #461
- fixed
autoClose
when range mode is on, #466 - fixed
onSelect
when range mode is on. Now it accepts array of selected dates instead of single one #467 - fixed transition between
isMobile
mode on and off #470 - added position update when resizing window #472
- added Sinhala locale, thanks to nimeshc64 in #464
- fixed French locale, thanks to matschik in #465
- added Ukrainian locale, thanks to zaandr in #471
- added lazy rendering - now inner components of datepicker will be created only when it will be visible, and will be destroyed when datepicker is hidden
- improved
position
- now it can be function which allows you to perform advanced positioning using third-party libraries such as popperjs or manually - added
isMobile
option, which allows showing Air Datepicker as modal window on mobile devices - added
visiblie
option, if it is set totrue
then calendar will be visible at the start - changed
dateFormat
- as function it now handles all dates at once, instead of each date separately - fixed field names in
onSelect
andonRenderCell
options:type
->cellType
,dp
->datepicker
- fixed typings
- fixed
closet
function, thanks to @hreyeslo in #445 - added Turkish locale, thanks to @ozkanozcan in #447
- added opportunity to set attributes when creating custom buttons, thanks to @khidirbekov in #448
- added Thai locale, thanks to @boatkung in #453
- fixed
update
method issue when some changes did not apply immediately
- no more jQuery
- improve rendering process - remove redundant cell render when selecting date, which gave a large speed boost compared to the old version
- date format tokens now use Unicode Technical Standard
- TypeScript support
- added
selectedDates
option, to be able to select dates from the start - added a possibility to create custom buttons
- now one could change selected range by dragging dates
- added
container
option which allows you to place datepicker in a custom element navTitles
can receive a function and could render dynamicallydateFormat
now can receive a functiononSelect
andonRenderCell
callbacks are now receive a single object as an argument instead of multiple parametersselectDate
now receives second parameter with optionsonChangeMonth
,onChangeYear
,onChangeDecades
are replaced with single optiononChangeViewDate
- localization now must be provided as an object instead of string as it was before
- fixed min,max dates in decade mode
- fixed min,max dates handling
- changed RegExp for recognizing date parts
- changed jquery version dependency
- added
onlyTimepicker
option - added
onShow
andonHide
callbacks - added
VERSION
field to plugin's prototype - now for selecting same date in
range
mode, you should set{toggleSelected: false}
- fixed
dateFormat
method (fixed wrong month name in Hungarian language) - fixed second call of
onRenderCallback
- fixed
_getCell()
throwing exception - new language:
sk
thanks to RobiNN1
- added possibility to select single date when
{range: true}
- added support of 12 hours mode in
altFieldDateFormat
- improved work with minDate and maxDate when
{timepicker: true}
- fixed wrong class adding when
{range: true}
- new languages:
es
thanks to MarioAraquecs
thanks to liborm85hu
thanks to gergo85fi
thanks to joonaskaskisolaphzpl
thanks to xiiofr
thanks to nicooprat
- fixed dates array in
onSelect
callback
- fixed version for npm
- added timepicker (see docs for more info)
- added possibility to set
Date
intodayButton
- global variable
Datepicker
has been removed, now all placed in$.fn.datepicker
- improved
selectDate
method, now one can pass an array of dates to select - added
npm
package - fixed issue caused by
placeholder
onreadonly
inputs in IE - fixed issue when
range
is true and first selected date is bigger than second - added new languages:
da
thanks to bjarnefnl
thanks to JaZopt
thanks to cmpscabralpt-BR
thanks to dowglazro
thanks to tourniquet
- fixed '$ is not defined' problem.
- fixed
dateFormat
method. - fixed typo in Russian docs, add ids in docs headers.
- fixed typo in
monthsField
- added German language (thanks to Ichag)
- tests added
- added Chinese language (thanks to think2011)
- fixed if '0' is passed to
firstDay
- fixed
showOtherYears
option - fixed
onSelect
event, whenrange
is true - fixed case when
range
andmultipleDates
both set to true
- add
range
feature - improve keyboard navigation (fixed two focused cells)
- add keyboard navigation
- add
classes
option to add custom classes - add
altField
option - bug fixes