简体   繁体   English

如何使用 VUE 在 FullCalendar 中的 ListWeek 上显示时间

[英]How to show time on ListWeek in FullCalendar using VUE

Can anyone have idea how to show time in List View For Full-Calendar.谁能知道如何在完整日历的列表视图中显示时间。 Everything is working fine for me but time itself is not coming in the view.一切对我来说都很好,但时间本身并没有出现。 Attached the snaps for the reference.附上快照以供参考。

在此处输入图像描述

CODESANDBOX LINK : https://codesandbox.io/s/vue-fullcalendar-scheduler-example-forked-204qy?file=/components/Calendar.vue CODESANDBOX 链接https://codesandbox.io/s/vue-fullcalendar-scheduler-example-forked-204qy?file=/components/Calendar.vue

Code: Template: Script:代码:模板:脚本:

    data() {
    return {
      calendarOptions: {
        plugins: [dayGridPlugin, interactionPlugin, listPlugin, timeGridPlugin],
        initialView: "listWeek",
        headerToolbar: {
          left: "today prev,next",
          center: "title",
          right: "dayGridMonth,timeGridWeek,timeGridDay,listWeek",
        },
        events: [
          {
            start: "2021-11-10T04:30:00",
            title: "List View",
            backgroundColor: '#226911',
            end: "2021-11-27T14:30:00",
          },
          {
            start: "2021-11-08T04:30:00",
            title: "Test",
            end: "2021-11-10T14:30:00",
          },
          {
            start: "2021-10-15T04:30:00",
            title: "It should be default load",
            end: "2021-10-18T14:30:00",
          },
        ],
        eventDisplay: "block",
        displayEventTime: false,
        allDaySlot: false,
        buttonText: {
          today: "Today",
          month: "Month",
          week: "Week",
          day: "Day",
          list: "Agenda",
        },
      },
    };
  }

enter code here

Please review the code and help me to out from this issue.请查看代码并帮助我解决此问题。 Thanks in Advance!提前致谢!

maybe set displayEventTime to true in calendarOptions可能在 calendarOptions 中将 displayEventTime 设置为 true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM