开发者

fullcalendar.js: times not showing up in agenda view

开发者 https://www.devze.com 2022-12-21 04:54 出处:网络
Like others I\'m having problems getting timed events to开发者_Python百科 show up on the agendaWeek view. If you look at the events below, the first two are mine and show up as all day events. The las

Like others I'm having problems getting timed events to开发者_Python百科 show up on the agendaWeek view. If you look at the events below, the first two are mine and show up as all day events. The last one is from the documentation and shows up in the correct time block. I've been staring at this so long I'm sure I'm missing something simple. Can anyone else see it?

    $(document).ready(function() {
        $("#calendar").fullCalendar({
            defaultView: 'agendaWeek',
            month:0,//current year assumed, first day of month assumed
            date: 4,
            height: 650,
            header: {left: 'title',center:'agendaWeek'},
            events: [

                        {
                          title : 'Fred',
                          start : '2010-01-04 08:00:00',
                          end   : '2010-01-04 09:00:00',
                          allday : false
                        },
                        {
                          title : 'Betty',
                          start : '2010-01-06 08:00:00',
                          allday : false
                        },

                        {
                            title  : 'event3',
                            start  : '2010-01-05 12:30:00',
                            allDay : false // will make the time show
                        }


                    ]       

                });

                });
</script>


I fixed my problem as follows: Where you have allday you need allDay with a capital D.

Cheers!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号