Can I adjust the x_date of a timeline on the fly?

I mean without having to call createTimelineView() every time the unit changes?
Thanks for any help!

Hello,

Yes, timeline options are available under

scheduler.matrix.timeline.x_date

here “timeline” is the name of your view (named “timeline” in the samples could be different).
Don’t forget to refresh the view after changing options.

Best regards,
Ilya

Hello,

Thank you so far but I still can’t’get it done… How should I refresh the view to have it pick up the x_unit and x_size? I tried “scheduler.setCurrentView(scheduler.getState().date, ‘timeline’);” but that didn’t work…

Best regards,
Jaap