fullcalendar - FullCalendar 调度程序 - nowIndicator 仅适用于作为 Day 的 initialView
问题描述
正如标题所说,我正在使用 FullCalendar Scheduler 但我似乎无法nowIndicator
使用initialView
asresourceTimelineMonth
或resourceTimelineWeek
. 指标停留在00:00
当天。
只有将 initialView 设置为resourceTimelineDay
.
我的代码:
<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,
}
}
},
解决方案
推荐阅读
- javascript - 是否可以将 .includes 用于关联数组/哈希数组?
- python - numpy均值和总和不可置换
- wpf - DataGrid comboBoxItems 行为怪异
- hibernate - 如何在@post端点中持久化数据
- tree - BST有效性的错误解决方案
- reactjs - 在开玩笑设置中发现 Momentjs 导入错误
- django - DJANGO - 仅针对模型中的某些对象将权限从管理面板分配给用户
- c# - Applying a custom identifier on variables within a class
- c++ - 导出应用程序的成员函数以供共享库调用
- python - 可调用的Python输入?