Page 1 of 1

[REACT] Set start/end date of timeline viewport?

Posted: Tue Feb 07, 2023 5:33 am
by taiki-fr

Hello,

Is there a way to set the start/end of the visible viewport region to a specific date? I was trying the startDate/endDate parameters but it looks like these set the timespan of the whole scrollable region, not the region that is in view. Our goal is to use two date picker components from our own React component library that allow the user to enter a start and end date, and pass those into the Gantt so the user can look at a specific time period.

Thanks,
Taiki


Re: [REACT] Set start/end date of timeline viewport?

Posted: Tue Feb 07, 2023 10:46 am
by tasnim

Re: [REACT] Set start/end date of timeline viewport?

Posted: Tue Feb 07, 2023 11:49 pm
by taiki-fr

Hi Tasnim, thanks, this is working pretty well! I'm running into a different issue with the onVisibleDateRangeChange event handler but I'll start a new thread for that.