Error setting property of JQuery FullCalendar when user changes date

1

I need to change the minTime property of the view agendaDay of FullCalendar dynamically as the user changes the date.

I've already tried the following:

dayRender: function(event, element, view) {
        $('#calendar').fullCalendar('getView').calendar.options.minTime = '10:35:00';
        //$('#calendar').fullCalendar('render');
}

The 10:35:00 value is just an example, because my application returns the actual values of the database, depending on the date the user chooses.

When I uncomment the $('#calendar').fullCalendar('render'); line, trying to give a refresh in the view after changing the property, the page is left blank as a result of some error.

The same happens if I try to give refresh on view using $('#calendar').fullCalendar('destroy'); .

What would be the correct way to update calendar properties and display them when the user changes the date?

    
asked by anonymous 29.05.2015 / 20:14

0 answers