我将我的全日程表设置为有15分钟的时段,但是它没有显示分钟突破。
例如,它将显示9am、10am、11am等,但不显示9am、9:15 9am、9:30 9am等。
它显示了其他插槽的分钟突破,比如10分钟,但我不能让它工作15分钟。
我环顾四周,看到了这篇文章:How to show all text on the axis for each minute slots rather than just 6am, 7am etc
但我找不到用户提出的解决方案中所指的函数。也许脚本从那时起就被更新了。
有没有人知道我怎么才能展示最新的突破?
发布于 2016-04-28 00:13:36
我知道这已经有很长时间了,但是对于任何有同样问题的人,你可以尝试使用:
slotDuration: '00:15:00',
slotLabelInterval: 15,
slotLabelFormat: 'h(:mm)a',在完整的日历v2中
发布于 2017-03-06 20:24:17
你应该像下面的例子一样初始化你的日历。请参阅我的jsfiddle示例了解您的解决方案。https://jsfiddle.net/ahmetyildirim/pk7na5jL/
它可以与Fullcalendar v3.2.0一起使用。
$(document).ready(function() {
$('#calendar').fullCalendar({
weekends: false, // will hide Saturdays and Sundays
header: {
left: 'prev,next today',
center: 'title',
right: 'agendaWeek,month,agendaDay'
},
defaultView: "agendaWeek",
businessHours: {
// days of week. an array of zero-based day of week integers (0=Sunday)
dow: [1, 2, 3, 4, 5], // Monday - Friday
start: '08:00', // a start time (8am in this example)
end: '18:00' // an end time (6pm in this example)
},
minTime: '06:30:00',
maxTime: '19:30:00',
slotDuration: '00:15:00',
slotLabelInterval: 15,
slotLabelFormat: 'h(:mm)a',
defaultDate: '2016-01-12',
slotMinutes: 15,
events: [{
title: 'test',
start: '2016-01-11T09:30:00',
end: '2016-01-11T12:30:00'
}]
});
});发布于 2014-01-17 04:44:07
我想通了。使用fullcalendar.min.js时,如果您将其注释掉:
u=h.getMinutes();它将在Y轴上正确显示分钟数。我找不到它在哪里,因为我上面链接的另一篇文章没有使用脚本文件的"min“版本。
https://stackoverflow.com/questions/21142682
复制相似问题