Fullcalendar缺少日期时间的半小时时间。

huangapple go评论61阅读模式
英文:

Fullcalendar missing time on date-time for half of hours

问题

我使用以下选项运行FullCalendar:

defaultTimedEventDuration: '00:30',
slotDuration: '00:30:00',
events: '/admin/appointment_bookings/calendar.json',
minTime: "08:00:00",
maxTime: "24:00:00",
slotLabelFormat: ['HH:mm'],
timeFormat: 'HH:mm',

但是,我的日期时间只显示了一个小时,半小时没有显示。

我还想显示半小时(在红色标记处),我在浏览器上检查了数据时间已经是正确的,但是缺少了半小时的<span>。有人能帮我吗?谢谢。

英文:

i run fullcalendar with this options

defaultTimedEventDuration: &#39;00:30&#39;,
slotDuration: &#39;00:30:00&#39;,
events: &#39;/admin/appointment_bookings/calendar.json&#39;,
minTime: &quot;08:00:00&quot;,
maxTime: &quot;24:00:00&quot;,
slotLabelFormat: [&#39;HH:mm&#39;],
timeFormat: &#39;HH:mm&#39; ,

but my date-time only showing for one hours,, the half of hours is not displaying
Fullcalendar缺少日期时间的半小时时间。

i want also to show for half of hours (on the red mark),, i inspect the browser on data-time is already correct,, but it's missing the <span> for half of hours
Fullcalendar缺少日期时间的半小时时间。

can anyone help me? thx

答案1

得分: 2

尝试使用 slotLabelInterval 选项,类似于 00:30

英文:

Try using slotLabelInterval option something like 00:30

huangapple
  • 本文由 发表于 2023年3月1日 15:51:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75600852.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定