Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

v1.0.4 – "Formats For Days"

Choose a tag to compare

@kalepail kalepail released this 04 Sep 20:09
· 88 commits to master since this release
  • Formats! You can now format all the output dates via the format object in the new Calendar call (Thanks Derk-Jan Karrenbeld)
new Calendar({
  ...
  format = {
    input: 'MMMM D, YYYY', // Format for the input fields
    preset: 'll', // Format for the preset dates
    jump_month: 'MMMM', // Format for the month switcher
    jump_year: 'YYYY' // Format for the year switcher
  }
  ...
  }
});
  • Days array. You can now include your own days array if you'd like to change the values at the top of the calendar
new Calendar({
  ...
  days_array: ['Su','Mo','Tu','We','Th','Fr','Sa']
  ...
  }
});
  • Added support for manual date entry outside the range.. will now clamp back/forward to latest/earliest dates rather then just resetting. Yay!
  • On the double calendar, callbacks now submit on a click event outside the calendar if a valid date has been chosen for the first date. No need to pick the same second date just to submit the changes!
  • A few more minor bug fixes and improvements