Calendar widget: custom date format

2
We use the calender widget and it works great. But when you click on the button "week", the dates are shown in a format: month/day's (for example 12/30). We want to set it to day's/month (30/12). In the documentation i have read that you can change it to use with custom date format: http://arshaw.com/fullcalendar/docs/text/columnFormat/ I have tried: {month: 'ddd', week: 'ddd d/M', day: 'dddd d/M'} but nothing is changed..... Has anyone a suggestion?
asked
3 answers
3

The {} in the columnformat is a javascript object literal. Don't use that here.

Edit:

Open the views property editor, the second tab: extra has the formats per view.

answered
0

Thanks Chris de Gelder!!!

He helped me a lot. The solution is to define a available view (under properties, extra, available views, new, second tab, extra). When you put the custum format there, it works fine

answered
0

To add to this, there seems to be a problem with this widget in Mendix 5, the date formats configured in the widget are not passed on to javascript. The only way I got it to work is by manually changing the following line of code in the calendar.js file which is in the widget package:

Original code: this.fixObjProps(['notused']);

New code: this.fixObjProps(['notused','notused1']);

I've also issues a support ticket for this.

One more thing, this workaround requires the latest version of the app (the one with the fix for color enumerations).

answered