valincius/BlazorScheduler

Drag and Drop for Appointments

FreddyS96 opened this issue · 5 comments

Hi, first of all i really appreciate your work.
Its a nice component.

It would be nice to have drag and drop support for appointments to reschedule them.

Thank you! And great idea!
I think this'll be pretty easy - I already have dragging setup, so would really only need to add a onmousedown then change the start and end dates of the appointment that was clicked. Would need to add binding to the start & end dates on the appointments.

I can work on this in maybe a week or so, but if you want to take this I can guide you through it if you get stuck :)

Working on this now. Will go out with v4.1.0 in about a week - you can pull the branch if you'd like to test it out. Right now using binding but I think I will change it to a callback like and you can add OnMoved to your <Appointment ... /> - what is your preferred usage here?

Sounds really good. With that Callback on the Appointment.
I tried implementing it by myself but was a bit in a hurry and couldnt get the js up and running.

Will try your solution. Really appreciate it.
Thanks a lot.

Comment from my side:
Theres a visual bug when you drag and drop the appointment on the bottom line of a day it expands visually to the whole week.

Comment from my side: Theres a visual bug when you drag and drop the appointment on the bottom line of a day it expands visually to the whole week.

Hey - thanks for helping me out on this one. I noticed that and it took me an hour (felt like 3!) to figure out what it was but only took 1 line change to fix it.. (7a97b67). Do you want to take another look before I merge this in? @FreddyS96

Looks good now ! @valincius