如何在angularjs中使用日期导航调度程序更改日期控件

时间:2017-09-20 12:42:55

标签: angularjs daypilot-scheduler

嗨,我是日间飞行员调度员的新手,

我已提及今天的飞行员调度程序https://code.daypilot.org/54503/angularjs-timesheet-tutorial-javascript-php来使用我的时间表。

这里我想要的是我想选择日期取决于侧边栏日历。

这里我不知道如何选择当前日期。

enter image description here

在时间表中,我只想显示所选的一周。

days: new DayPilot.Date().daysInMonth(),
startDate: new DayPilot.Date().firstDayOfMonth(),

我试着理解代码,但对我来说有点困难。

任何人都可以告诉我如何设置所选日期取决于侧压光控件。

由于

1 个答案:

答案 0 :(得分:0)

$scope.scheduler = { 
viewType: "Days", 
showNonBusiness: false, 
businessBeginsHour: 9, 
businessEndsHour: 17, 
cellWidthSpec: "Auto", 
scale: "CellDuration", 
cellDuration: "15", 
useEventBoxes: "Never", 
days: 7, 
startDate: (new DayPilot.Date().firstDayOfWeek())}

使用天数:7

仅返回7天

https://forums.daypilot.org/Topic.aspx/3974/daypilot-scheduler-end-date-set-as-current