meteor-fullcalendar
meteor-fullcalendar copied to clipboard
list View not working
Hello I would like to be able to use the listWeek view from FullCalendar. Whatever I do I get the following error:
Exception from Tracker afterFlush function:
TypeError: spec.class is not a constructor
at Calendar_constructor.instantiateView (rzymek_fullcalendar.js?hash=943b863…:9296)
at renderView (rzymek_fullcalendar.js?hash=943b863…:9678)
at initialRender (rzymek_fullcalendar.js?hash=943b863…:9623)
at Calendar_constructor.render (rzymek_fullcalendar.js?hash=943b863…:9587)
at HTMLDivElement.<anonymous> (rzymek_fullcalendar.js?hash=943b863…:85)
at Function.each (jquery.js?hash=c57b3cf…:442)
at jQuery.fn.init.each (jquery.js?hash=c57b3cf…:194)
at jQuery.fn.init.$.fn.fullCalendar (rzymek_fullcalendar.js?hash=943b863…:64)
at Blaze.TemplateInstance.Template.fullcalendar.rendered (rzymek_fullcalendar.js?hash=943b863…:12970)
at blaze.js?hash=983d07a…:3341
I'm using Meteor version 1.4.2.3. Thanks for any help!
Here is a small working example to see the behaviour: meteor create testFC cd testFC meteor add rzymek:fullcalendar
main.html:
<head>
<title>testFC</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> calendar}}
</body>
calendar.html
<template name="calendar">
{{> fullcalendar options}}
</template>
calendar.js
Template.calendar.helpers({
options: function(){
return {
defaultView: 'listWeek',
}
}
});