All jsCalendar changes are documented in this file.
- Nothing yet
- Added extension add method
jsCalendar.ext('example', {init : <function>, create : <function>, update : <function>});
- Added methods
freeze
/unfreeze
/isFrozen
to prevent the calendars from re-rendering the UI PR#56 by [paxperscientiam](https://github.com/paxperscientiam]
- Fixed
info.start
parameter ononMonthRender
(was not the first date) - Fixed selected dates not highlighted bug (depending on your timezone) (issue #44)
- Fixed
onDateRender
incorrectisCurrentMonth
,isPreviousMonth
andisNextMonth
(issue #45) - Fixed
fdotw
bug #42 - Improved UX on dates outside
min
&max
limits PR#58 by zangarmarsh - Fixed invalid date passed as date object not being detected
- Added Polish Language (by avatec)
- Added Arabic Language (by JefferyHus)
- Added Thai Language (by notjiam)
- Added Korean Language (by JefferyHus)
- Added Occitan Language (by Quentin PAGÈS)
- Added VietNamese Language (by Nguyen Duy Dien)
- Fixed Catalan Language spelling mistake
- API
- Render handlers (based on PR #35 by jordanwallwork and Issue #40 by Daniel Rudolf)
- Option and method
onMonthRender
- Option and method
onDayRender
- Option and method
onDateRender
- Option and method
- Default options were exposed on
jsCalendar.options["option-name"]
- Exposed
jsCalendar.tools.getElement
method (previously known asjsCalendar.prototype._getElement
)
- Render handlers (based on PR #35 by jordanwallwork and Issue #40 by Daniel Rudolf)
- Bugs
- Fixed days locale bug of the
setLanguage
method (Issue #28) - Fixed a typo in French language (by Thomas Chapuis)
- Fixed min-date comparison on previous month navigation (Issue #30)
- Fixed compatibility with bootstrap (Issue #31)
- Fixed classic micro theme days of the week width bug
- Fixed not parsing dataset options on dynamic calendar creation
- Fixed
this
not pointing to jsCalendar instance on events handlers (onDateClick
andonMonthChange
)
- Fixed days locale bug of the
- Languages
- Fixed French language typo (by amstr4d)
- Languages
- Added Dutch Language (by mikedebruijn)
- Added Catalan Language (by antonstsk)
- Added Swedish Language (by olssonm)
- Added Belarusian Language (by vorvule)
- API
- Added support for getting the object of an
auto-jsCalendar
calendar or saving onevar myCalendar = jsCalendar.get('#byId');
jsCalendar.set('@myCalendar', myCalendar);
jsCalendar.del('@myCalendar');
- Added support for custom date string parser handlers #18
- Added support for getting the object of an
- Themes
- Micro Theme added #15
- Bugs
- Fixed selected days bug #19 (by rodrigoetoh)
- Languages
- Fixed Japanese Language (by sueharaluke)
- Fixed Chinese Language #18 (by BlackEgg)
- Languages
- Added Portuguese Language (by goodeath)
- Added Turkish Language (by mgvjet)
- Added Slovak Language (by greatapo)
- Added Hungarian Language
- Added Norwegian Language (by SpellCraft)
- Added Ukrainian Language (by ashep)
- Fixed date format bugs and added "day" keyword
- Before fix
javascript jsCalendar.tools.dateToString(new Date(2017, 11, 1), "month day", "en");
// returns "1eceDber Fay" (D = 1, m = D, d = F)
- After fix
javascript jsCalendar.tools.dateToString(new Date(2017, 11, 1), "month day", "en");
// returns "December Friday"
- Before fix
- Fixed no zero fill for day 9 with format DD
- jsCalendar.tools.*
- jsCalendar.tools.parseDate(date)
- jsCalendar.tools.stringToDate alias of JsCalendar.tools.parseDate
- jsCalendar.tools.dateToString(date, format, lang)
- jsCalendar.version
- calendar.clearSelected() alias of calendar.clearselect()
- calendar.isSelected(date)
- calendar.isVisible(date)
- calendar.isInMonth(date)
- calendar.getSelected(options)
- support to get target with selectors
- ex. target string
"#myelement"
will get the element with idmyelement
- ex. target string
- min(date) // Set a max date for the calendar
- max(date) // Set a min date for the calendar
- duplicate dates when time changes (ex. 29/10/2017)
- string dates that do not exist throw error
- ex.
new jsCalendar(document.createElement('div'), "31/2/2017");
now throw error
- ex.
- Support for setting the first day of the week
- firstDayOfTheWeek : "{day-name}" // Based on the language sellected
- firstDayOfTheWeek : "{number}" | {number} // 1-7 starting from Sunday
- alias keyword : "fdotw" (from the initials FistDayOfTheWeek)
- Public release of the library.