react-timeline-gantt icon indicating copy to clipboard operation
react-timeline-gantt copied to clipboard

Is there support for a horizontal slider/cursor?

Open xeolabs opened this issue 5 years ago • 2 comments

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 avatar Feb 25 '20 17:02 xeolabs

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.

xeolabs avatar Feb 25 '20 18:02 xeolabs

@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

balbatross avatar Jul 16 '21 11:07 balbatross