The problem I’m having is I can’t get the Wisej FullCalendar extension option like this :
I have the message : Attempting to call a FullCalendar method on an element with no calendar.
Any suggestions for how to fix this?
Thanks in advance!
i have to set 24 hour format for FullCalendar (AgendaView).
I found this (https://fullcalendar.io/docs/timeFormat), but right now i can’t set any options for this extension (see image).
Any suggestion ? Thanks
The Wisej extension uses the Calendar class to create the calendar and save the reference. Otherwise it would have to go through the jquery wrapper all the times. When jquery calls $(“.fc”).fullCalendar(‘option’, ‘locale’) it first retrieves the element (or elements) with the class “fc” by name, then tries to retrieve the data using the name “fullCalendar” (same as $(“.fc”).data(“fullCalendar”)) then it looks for the function named “options”. There is also the problem of having more than 1 calendar in the same browser page, using “.fc” in jquery operates on all the calendars at once.
Since the widget has already created the full calendar and it needs to interact with the options dynamically, we create the full calendar class and save it in this.calendar. So you can:
this.calendar.option(“locale”) // if the script is running in the context of the wisej widget and this == wisej widget.
App.Window1.fullCalendar1.calendar.option(“locale”); // using the fully qualified path.
There are other ways to get to the widget, but it all depends on the context. You can also use the id of the widget. In any case, the widget object has a field “calendar” which is an instance of the $.fullCalendar.Calendar class.
Please login first to submit.