Articles in this section
Category / Section

How to Display a Two Week Timeline View in Angular Schedule?

2 mins read

To display a two-week timeline view in your Angular Scheduler component, you can use the timelineDay view and set the interval to 14. Additionally, you can disable the timeScale property and adjust the selectedDate by subtracting it from the currentDate for accurate results. Below is a code snippet demonstrating these configurations: 


[app.component.html]

<ejs-schedule #scheduleObj width='100%' [timeScale]="timeScale" [(currentView)]="currentView">
  <e-views>
    <e-view option="TimelineDay" [interval]="timelineDayInterval"></e-view>
  </e-views>
</ejs-schedule>

[app.component.ts]

export class AppComponent {
  public selectedDate: Date = new Date(
    new Date().setDate(new Date().getDate() - 4)
  );
  public currentView: View = 'TimelineDay';
  public timelineDayInterval: number = 14;
  public timeScale: TimeScaleModel = { enable: false };
}

Sample: C73wki (forked) - StackBlitz


TimeScale api: https://ej2.syncfusion.com/angular/documentation/api/schedule/#timescale

Interval api: https://ej2.syncfusion.com/angular/documentation/api/schedule/timeScaleModel/#interval


Conclusion:

We hope you enjoyed learning about how to Display a Two Week Timeline View in Angular Schedule.

You can refer to our Angular Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Scheduler example to understand how to create and manipulate the data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsBoldDesk Support, or feedback portal. We are always happy to assist you!


Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied