guiqui / react-timeline-gantt

A react Timeline component with virtual rendering
MIT License
541 stars 131 forks source link

Function to move horizontally to a specified date #28

Open nodesmichael opened 5 years ago

nodesmichael commented 5 years ago

Hello,

Thank you for this! It's easy to setup and really helpful.

Is there a way to tell the Timeline to scroll horizontally to the start date of the earliest/first task when the component is created? Currently it focuses on the current date. Unless I'm doing something wrong?

It would be nice to have an option to bring any task into view on the right when clicking on it's name on the left hand side.

nikhilkomakula commented 4 years ago

Hello Team, Am looking for the same. It would have been better if there is a way to have the Timeline scroll to the earliest start date. Is there a workaround for this? Thanks.

nikhilkomakula commented 4 years ago

Hello @nodesmichael,

Were you able to fix the issue?

Thanks, Nikhil

nodesmichael commented 4 years ago

Hello @nikhilkomakula . I'm afraid not, we haven't worked on this library at all since I posted the issue.

nikhilkomakula commented 4 years ago

Thanks for your prompt response @nodesmichael. This seems to be a major issue to me. Interested to know if you have used any other alternate gantt timeline library. Thanks in advance.

nodesmichael commented 4 years ago

No, not yet!

nvgopi commented 4 years ago

I was able to achieve this partly by manipulating the following values in the timeline.js file. this.setState({ currentday: cDateDiff, nowposition: nowposition, scrollLeft: scrollVal, / dateUpdate:this.state.dateUpdate + 1, / // mode:mode, }, () => { this.setStartEnd(); this.props.blnPickerCallBack(false); });