如何删除“上一个",“下一个"和“今天" FullCalendar中的按钮 [英] How to remove "previous", "next" and "today" button in FullCalendar
本文介绍了如何删除“上一个",“下一个"和“今天" FullCalendar中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试过类似的事情
I've tried something like this
viewRender: function(currentView){
$('body').remove('.fc-prev-button');
$('body').remove('.fc-next-button');
$('body').remove('.fc-today-button');
}
});
但是它不会删除那些按钮.我究竟做错了什么?在全日历配置中执行此操作的正确方法是什么?
But it doesn't remove those buttons. What am I doing wrong? What is the correct way to do it in fullcalendar configuration?
推荐答案
您不必在标题中设置选项.像这样的东西.
You just don't have to set the options in the header. Something like that.
header: {
left: 'title',
center: '',
right: 'today '
}
在这里看看: 完整日历文档
这篇关于如何删除“上一个",“下一个"和“今天" FullCalendar中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文