Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there support for a horizontal slider/cursor? #47

Open
xeolabs opened this issue Feb 25, 2020 · 2 comments
Open

Is there support for a horizontal slider/cursor? #47

xeolabs opened this issue Feb 25, 2020 · 2 comments

Comments

@xeolabs
Copy link

xeolabs commented Feb 25, 2020

Hi, I'd like to be able to move a slider/cursor back and forth horizontally, which would be indicated with a vertical line. As I move it, I'd get events indicating which records the cursor intersects. Is this supported by this timeline?
Thanks.

@xeolabs
Copy link
Author

xeolabs commented Feb 25, 2020

More info - specific use case: We have a 3D model of a building, on which various tasks are scheduled. We can associate the model's objects with tasks on a Gantt timeline. We'd like to have a slider (a vertical line going from the top of the chart to the bottom) that we can move back and forth horizontally. Whenever the slider intersects one or more tasks, we'd like to highlight the model objects associated with those tasks. Does react-timeline-gantt currently have functionality to support such a case?

I wasn't able to find info in docs or examples, but if someone could point me to something that would be much appreciated.

@balbatross
Copy link
Contributor

balbatross commented Jul 16, 2021

@xeolabs I'll look at adding that to my fork of the project Fork Link. If you wanted to do it yourself you'll need to add a new component linked to the nowposition and scrollLeft vars and then you can find the intersection line from the current viewport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants