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');