Week View - scheduler.init

Hi,

I’m Using the following to initiate a schedule component:

scheduler.init(‘scheduler_here’, start_date, ‘timeline’);

I get a timeline of days appearing on the left hand side going from Monday to Sunday. However I need my weeks to run from Saturday to Friday going from one week into the next. Is this possible and how would I do this and then assign events onto these dates going from one week to another?

Thanks.

Hi,
to set a specific day, from which you want your timeline view to start, you need to use the scheduler.date.{viewName}_start method:
https://docs.dhtmlx.com/scheduler/custom_views.html#methodsforhandlingtheview
https://docs.dhtmlx.com/scheduler/api__scheduler_getview.html
This method takes the active date of the Scheduler and returns your own start date of the view interval. In order for the view timeline to start on Saturday, we subtract the required number of days from the active date. In more detail you can familiarize yourself with the operation of the method in our example in the snippet:
http://snippet.dhtmlx.com/5/660227669