|
let scheduleObj: Schedule = new Schedule({
height: '650px',
selectedDate: new Date(2021, 0, 10),
currentView: 'TimelineWeek',
startHour: '08:00',
endHour:'15:00',
workDays: [0, 1, 2, 3, 4, 5],
views: [
{ option: 'TimelineDay' },
{ option: 'TimelineWeek' },
{ option: 'TimelineWorkWeek' },
{ option: 'TimelineMonth' },
{ option: 'Agenda' }
],
eventSettings: {
dataSource: <Object[]>extend([], (dataSource as any).scheduleData.concat((dataSource as any).timelineData), null, true)
}
});
scheduleObj.appendTo('#Schedule');
|