Skip to content

Releases: dmuy/duDatepicker

duDatepicker v1.2.2-rc

23 Aug 15:18
Compare
Choose a tag to compare

Breaking update

  • Reworked date range functionality learn more - no longer needs two input elements.
    • The following configurations no longer works: rangeFrom and rangeTo
    • The following data attribute no longer works: data-rangefrom and data-rangeto

Updates

  • Additional configurations
    • range - Enables date range mode
    • fromTarget - 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 range
    • rangeFormatter - Formatter function for the selected date range display. Two parameters from and to 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)

duDatepicker v1.2.1

17 May 15:01
Compare
Choose a tag to compare

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

duDatepicker v1.2

08 Dec 14:47
Compare
Choose a tag to compare
  • Removed readOnly config; defeats the purpose of using a date picker if readOnly is false
  • Animation changes/improvements
  • Added auto config for auto-selection on date click; false by default

duDatepicker v1.1

06 Dec 00:24
Compare
Choose a tag to compare
  • Enhanced date disabling
  • Minor fixes

duDatepicker 1.0

18 Jul 04:16
Compare
Choose a tag to compare

Initial duDatepicker release