我接手了一个带有 Kendo UI 的项目,并尝试找出如何从调度程序中删除时间行 (http://www.directupload.net/file/d/4027/icax4ca2_png.htm)。
我看过这部纪录片,但就是无法将其删除。 它不是 allDaySlot。
这真的让我很烦恼,我找不到要更改它的部分。代码如下所示:
$(document).ready(function() {
var schedulerSelectState = null;
var now = new Date();
window.schedulerEinsaetzeDisponiert = $("#scheduler").kendoScheduler({
footer: false,
date: new Date(),
// height: 400,
eventHeight: 30,
majorTick: 1440,
views: [
{
type: "timelineWeek",
title: "Wochenansicht"
},
{
type: "timelineMonth",
allDaySlot: false,
title: "Monatsansicht",
selected: true
}
],
timezone: "Europe/Berlin",
selectable: false,
谢谢你帮助我!
最佳答案
为什么不直接使用 CSS 来实现呢?像这样:
#scheduler .k-scheduler-header-wrap .k-scheduler-table > tbody > tr:nth-child(2),
#scheduler .k-scheduler-layout > tbody > tr:first-child > td > .k-scheduler-times .k-scheduler-table > tbody > tr:nth-child(2) {
display: none;
}
关于javascript - 在 Kendo UI Scheduler 中隐藏时间行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31005524/