我想从 Kendo UI Scheduler 控件的顶部删除标题控件,即此屏幕截图中以红色勾勒的部分:
我只想显示一天的静态日视图。有任何想法吗?
我想从 Kendo UI Scheduler 控件的顶部删除标题控件,即此屏幕截图中以红色勾勒的部分:
我只想显示一天的静态日视图。有任何想法吗?
对于所有日槽隐藏
$("#scheduler").kendoScheduler({
allDaySlot: false,
});
对于工具栏隐藏:
<style>
.k-scheduler-toolbar {
border-width: 0 0 1px;
display: none;
}
</style>
我不确定如何删除所有这些,但您至少可以通过在视图集合中选择 allDaySlot: false 来删除 All Day 插槽。如果您只想显示“日”视图,您将使用类似这样的内容(还显示如何删除页脚;不过,这似乎不适用于页眉):
$("#scheduler").kendoScheduler({
views: [
{ type: "day", selected: true, allDaySlot: false}
],
footer: false // removes the footer
});
请检查以下信息:
footer
选项设置为 false可以使用 CSS 样式删除工具栏:
.k-scheduler-toolbar {
display: none;
}
allDaySlot