Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kendo ui 剑道调度员:如何将日程视图限制为7天?_Kendo Ui_Kendo Scheduler - Fatal编程技术网

Kendo ui 剑道调度员:如何将日程视图限制为7天?

Kendo ui 剑道调度员:如何将日程视图限制为7天?,kendo-ui,kendo-scheduler,Kendo Ui,Kendo Scheduler,是否可以将剑道调度程序日程视图限制为仅7天(例如从周一到周日),而不是周一-周一 周视图 议程视图 试试这样的方法: views: [ { type: "week" }, { type: customAgenda, title: "Agenda" } ], var customAgenda = kendo.ui.AgendaView.extend({ endDate: function () { var date

是否可以将剑道调度程序日程视图限制为仅7天(例如从周一到周日),而不是周一-周一

周视图

议程视图

试试这样的方法:

views: [
          { type: "week" },
          { type: customAgenda, title: "Agenda" }
],

var customAgenda = kendo.ui.AgendaView.extend({
        endDate: function () {
            var date = kendo.ui.AgendaView.fn.endDate.call(this);
            return kendo.date.addDays(date, 7); // take the date and add 7 next days
        }
    });
您需要确保var日期是您希望显示的星期一。 例如:

var日期=2015年3月8日星期一00:00:00 GMT+0100(浪漫标准时间)