全日历中的仅一个月视图(删除/隐藏“日"和“周"视图) [英] Only month view in fullcalendar (remove/Hide "Day" and "Weeks" view)

查看:109
本文介绍了全日历中的仅一个月视图(删除/隐藏“日"和“周"视图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的全日历有-月|周|天"视图,我想删除或隐藏周"和天"视图,因为我们仅使用月"视图.

My fullcalendar has - "Month|Week|Day" view , I want to remove or hide the "Week" and "Day" views as we have been using only "Month" View.

您能告诉我该怎么做吗?

Can you please tell me how to do this?

推荐答案

开始全日历时,请勿包括"archiveyDay"和"archiveWeek".像

When you start fullcalendar, don't include agendayDay and agendaWeek. Something like

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

更新: 要摆脱月份按钮:

Update: To get rid of the month button:

$('#calendar').fullCalendar({
    header: {
        left: 'prev,next',
        center: 'title',
        right: ''
    }
});

这篇关于全日历中的仅一个月视图(删除/隐藏“日"和“周"视图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆