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

Question / Improvement Detect drag over time-view (TimeGrid) #2663

Open
dlesendric opened this issue Oct 8, 2024 · 0 comments
Open

Question / Improvement Detect drag over time-view (TimeGrid) #2663

dlesendric opened this issue Oct 8, 2024 · 0 comments

Comments

@dlesendric
Copy link

dlesendric commented Oct 8, 2024

For example, I have an event that lasts at least 2 to 3 days.
I would like to know when I start dragging that event over the TimeGrid catch that event and update its duration. For example, I would like to set its start for the current time and end for the exp 2 hours after.

Or even better, to detect over which slot of time I'm currently dragging that event?

Is this possible?

Currently, I have only the option onDragStart start to modify that start and end, but that's not what I want only in case if I drag over TimeGrid.

Example to reproduce: https://jquense.github.io/react-big-calendar/examples/index.html?path=/docs/addons-drag-and-drop--example-1
Find some day with the multiday event (Long day event) and go to day or week view.
When I start to drag that long day event (which is in "All Day column header") to slots of time TImeGrid, where I have hours, I would like to have option to modify that event to be only for that day and to have exp 2 hours.

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

1 participant