FullCalendar Scheduler - nowIndicator only works with initialView as Day

Viewed 184

Like the title says, I'm using the the FullCalendar Scheduler but I can't seem to make the nowIndicator to work with the initialView as resourceTimelineMonth or resourceTimelineWeek. The indicator stays at the 00:00 of the day.

It only works fine if the initialView is set to resourceTimelineDay.

My code:

<FullCalendar 
  v-if="employeeList && absenceList" 
  :options="calendarOptions"
/>

(...)

data() {
    return {
      employeeList: null,
      absenceList: null,
      calendarOptions: {
        plugins: [ resourceTimelinePlugin ],
        headerToolbar: {
            left: 'today prev,next',
            center: 'title',
            right: 'resourceTimelineDay,resourceTimelineWeek,resourceTimelineMonth'
        },
        locales: allLocales,
        locale: this.$i18n.locale,
        initialView: 'resourceTimelineMonth',
        resourceGroupField: 'department',
        resourceAreaHeaderContent: 'Colaboradores ',
        resourceOrder: 'department,title',
        nowIndicator: true,
        businessHours: [ 
          { 
            daysOfWeek: [ 1, 2, 3, 4, 5 ], 
            startTime: null, 
            endTime: null, 
          } 
        ],
        height: 600,
        resources: this.getEmployeesArray,
        events: this.getApprovedAbsencesArray,
      }
    }
  },
0 Answers
Related