If I understand correctly, prior to Mendix 5 (approximately) the Calendar widget supported titleAttr values that were either simple attributes or references. I believe that I am not alone in wishing for the capability. Also, by using the isPath="optional", I believe that this capability can be added without disrupting anyone who is currently using a simple attribute as the titleAttr.
Based on suggestions from the Forum, I've implemented this by adding a "prepareEvents()" method that precedes the "createEvents()" method. If the titleAttr is a reference, the createEvents() method does a mx.processor.get() to asynchronously get the data and then, once it has titles, calls createEvents() to actually prepare the events for display on the calendar.
Note: These changed files are based on the latest tagged version of Calendar-Widget that is, I believe, version 2.3.1.
Finally, I have also made minor changes to both calendar.xml and calendar.js that expose two addtional properties that are used by fullcalendar, but that had not bee previously visible to the Mendix calendar widget: axisFormat and slotMinutes. The axisFormat (that defaults to h(:mm)tt) is not appropriate if someone wants to use the 24-hour clock for all times. The axisFormat controls the vertical time axis that appears on the left of the calendar in day, week, and agenda views. The other property that I have made settable is the slotMinutes property that defaults to 30 minutes and controls the display increment in the calendar and, with "drag and drop" use of the calendar to create and/or alter calender events also controls the minimum reservable time. By exposing this propertly, on can display a "higher resolution" Calendar if it is set fo 10 or 15 minutes instead of the default 30 minutes.
Note: I have created a branch that is named (I think) titleAttr_as_reference, committed changes to calendar.xml and calendar.js in that branch and submitted a "Pull Request". I hope that I am following the proper protocol for this.
Thanks you,
John Shott -- [email protected]