Skip to content

duDatepicker v1.2.1

Compare
Choose a tag to compare
@dmuy dmuy released this 17 May 15:01
· 47 commits to master since this release

Added

  • outFormat configuration for the date format of datechanged event; by default it is null and the format configuration will be used
  • value config option to set the default value through initialization
  • theme: dark

Fixed

  • setValue bug

Enhancements

  • revised theme config to allow custom theme names; provided with custom theme css file (see duDatepicker-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');