Hi,
I'm using the following code:
rowClick(booking, index) {
if (this.selectedRow === index) {
this.selectedRow = -1;
}
else {
this.selectedRow = index;
const drag = document.getElementById(`clipboardBooking${index}`);
if (drag) {
drag.style.cursor = "move";
DayPilot.Scheduler.makeDraggable({
element: drag,
id: booking.id,
duration: booking.duration,
keepElement: true,
text: booking.text,
data: booking,
externalHtml: booking.text
});
}
if (this.onBookingSelected) {
this.onBookingSelected({ currentBooking: booking });
}
}
}
E.g. I want to first click on my row in the clipboard, perform some action and make that item draggable. All other items needs to be not draggabble and also if I click again I want to "unclick" that row.
So my question is - once I made my item draggable, how can I make it "normal" again? I guess I can change the style of the cursor, but would it be enough?
Thanks in advance.