Releases: dmuy/duDatepicker
Releases · dmuy/duDatepicker
duDatepicker v1.2.2-rc
Breaking update
- Reworked date range functionality learn more - no longer needs two input elements.
- The following configurations no longer works:
rangeFrom
andrangeTo
- The following data attribute no longer works:
data-rangefrom
anddata-rangeto
- The following configurations no longer works:
Updates
- Additional configurations
range
- Enables date range modefromTarget
- Date from input element selector (display target for range mode)toTarget
- Date to input element selector (display target for range mode)rangeDelim
- Delimiter for date rangerangeFormatter
- Formatter function for the selected date range display. Two parametersfrom
andto
are the Date objects of the selected date range
- Additional data on
datechanged
event object.- Default mode
_date
- Date object of the selected date - For date range mode only:
_dateFrom
(Date object)
_dateTo
(Date object)
dateFrom
(formatted date)
dateTo
(formatted date)
value
(formatted date range)
- Default mode
duDatepicker v1.2.1
Added
outFormat
configuration for the date format ofdatechanged
event; by default it isnull
and theformat
configuration will be usedvalue
config option to set the default value through initializationtheme
: dark
Fixed
setValue
bug
Enhancements
- revised
theme
config to allow custom theme names; provided with custom theme css file (seeduDatepicker-custom-theme.css
file) - ranged setup: if range to element has empty value, value will be set to selected date (of range from); if range from element has empty value, value will be set to selected date (of range to)
Script improvement on calling built-in functions
// setting the value; value format should be the same as the provided `format` configuration (or the default)
$('#datepicker').duDatepicker('setValue', '05/17/2020');
// calling the `show` and `hide` functions
$('#datepicker').duDatepicker('show');
$('#datepicker').duDatepicker('hide');
// destroying the date picker
$('#datepicker').duDatepicker('destroy');
duDatepicker v1.2
- Removed
readOnly
config; defeats the purpose of using a date picker ifreadOnly
isfalse
- Animation changes/improvements
- Added
auto
config for auto-selection on date click; false by default
duDatepicker v1.1
- Enhanced date disabling
- Minor fixes
duDatepicker 1.0
Initial duDatepicker release