Obelisk
Obelisk

Reputation: 39

"Uncaught Error: View type "timelineDay" is not valid" fullCalendar version 3.9.0

Here is my code:

<div id="calendar"></div>
<script>
    $('#calendar').fullCalendar({
        // put your options and callbacks here, month,agendaWeek
        defaultView: 'timelineDay',
        header: {
            left: 'prev',
            center: 'title',
            right: 'next'
        },
        minTime: '10:00:00',
        maxTime: '18:00:00'
    });
</script>

And I get the error in my console of "Uncaught Error: View type "timelineDay" is not valid".

The version I am using is 3.9.0 but it also doesn't work for 3.5.1 My jQuery version is 3.3.1

Any help would be greatly appreciated.

Upvotes: 2

Views: 2518

Answers (2)

user2060451
user2060451

Reputation: 2688

Old solved questions. Same problem with all the scripts. There was a conflict between a plugin and the script.

Upvotes: 0

S&#233;bastien
S&#233;bastien

Reputation: 12139

To use defaultView: 'timelineDay' you need the scheduler plugin.

You must download it and add it to your document.

<link href='fullcalendar.css' rel='stylesheet' />
<link href='scheduler.css' rel='stylesheet' />
<script src='moment.js'></script>
<script src='jquery.js'></script>
<script src='fullcalendar.js'></script>
<script src='scheduler.js'></script><!-- <<< New plugin here -->

Upvotes: 4

Related Questions