【发布时间】:2014-11-18 14:28:19
【问题描述】:
我正在使用 HTML5Admin 中的完整日历,但我需要日历显示在我设置的行中时刻 @@periods= ['pre-breakfast', 'post-breakfast', 'pre-lunch', ' post-lunch', 'afternoon', 'pre-dinner', 'post-dinner'] 而是在行中显示时间小时数(上午 7 点、上午 8 点、上午 9 点、上午 10 点......)。我不知道这是否可能。我也在使用 moment.js。我的代码如下所示:
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
scrollTime: '07:00:00',
minTime: '07:00:00',
maxTime: '22:00:00',
defaultView: 'agendaWeek',
header:{left:"prev,next,today",
center:"title",
right:"month, agendaWeek, agendaDay"},
// put your options and callbacks here
})
});
【问题讨论】:
标签: fullcalendar