最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - FullCalendar - Only display 'allDay' slot when in agenda view (weekly or daily) - Stack Overflow

programmeradmin0浏览0评论

My application only deals in full day events, so I'd like to be able to only display the allDay section for agendaViews. See screen shot below. I want to hide the areas highlighted in red.

Calendar widget: /

Screens:

My application only deals in full day events, so I'd like to be able to only display the allDay section for agendaViews. See screen shot below. I want to hide the areas highlighted in red.

Calendar widget: http://arshaw.com/fullcalendar/

Screens:

Share Improve this question asked Apr 13, 2014 at 15:33 PercivalMcGullicuddyPercivalMcGullicuddy 5,5339 gold badges50 silver badges66 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 8

You can use "basicWeek" and "basicDay" view,

$('#myCaledarId').fullCalendar({
      header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,basicWeek,basicDay'
        }
});

You overcomplicated it. Check the basicViews, http://arshaw.com/js/fullcalendar-1.6.4/demos/basic-views.html and have your events only with start date

{
    title: 'All Day Event',
    start: new Date(y, m, d)
}

In upper version than V3 like V4, V5, "basicWeek" and "basicDay" has renamed to "dayGridWeek" and "dayGridDay" Upgrade info

发布评论

评论列表(0)

  1. 暂无评论