Hi Chevron,
Syncfusion greetings.
Scheduler currentView property is two way binding and in the below sample, view is changed based on drop down selection.
<ejs-schedule #scheduleObj width='100%' height='650px' [selectedDate]="selectedDate" [eventSettings]="eventSettings" [(currentView)]="scheduleView"
(eventRendered)="oneventRendered($event)">
<e-views>
<e-view option="TimelineDay"></e-view>
<e-view option="TimelineWeek"></e-view>
</e-views>
</ejs-schedule>
<ejs-dropdownlist id="scheduleview" [dataSource]='datas' [(value)]='scheduleView'></ejs-dropdownlist>
In below sample view is changed based on button click action.
btnClick(): void {
this.scheduleObj.currentView='TimelineDay';
}
We can customize the views using e-view and kindly refer the below links.
<e-views>
<e-view option="TimelineDay"></e-view>
<e-view option="TimelineWeek"></e-view>
<e-view option="TimelineWorkWeek" [workDays]="workweekDays"></e-view>
<e-view option="TimelineMonth"></e-view>
<e-view option="Agenda"></e-view>
</e-views>
Note: firstDayOfWeek property is used to start the TimelineWorkWeek with Tuesday which will affect all views. We have logged the below improvement report to provide firstDayOfWeek property support on view basis like above workDays property. The fix will be included in our JS2 weekly release on July 30, 2019.
Regards,
Karthi