Error setting Jquery Fullcalendar property when user changes date

Asked

Viewed 133 times

1

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

I’ve tried the following:

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

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

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

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

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

  • What is the console log? (F12 or Ctrl+J in most browsers)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.