calendar icon indicating copy to clipboard operation
calendar copied to clipboard

Feature Request: Allow changing resource but not time

Open IanSimpson opened this issue 10 months ago • 1 comments

In timeline view, using eventStartEditable: false prevents both editing the start time and the resource allocated to events. In my case the time is fixed, but the task can be allocated to any resource.

I'd propose adding an eventResourceEditable option which defaults to whatever eventStartEditable is set to. Doing this would allow dragging between resources, but not altering the start time.

IanSimpson avatar Feb 12 '25 19:02 IanSimpson

Thanks for the suggestion. If anyone else needs this feature, please check in on this thread.

vkurko avatar Feb 17 '25 08:02 vkurko

I'd love to get this, I've implemented it myself using event key listeners but being native would be great

florianRnPVision avatar May 06 '25 12:05 florianRnPVision

Currently something similar can be achieved with dragConstraint callback:

dragConstraint: function (info) {
    let {event, oldEvent} = info;

    return event.start.getTime() == oldEvent.start.getTime()
        && event.resourceIds.every(id => !oldEvent.resourceIds.includes(id));
}

But you need to drag it to the exactly same time for the new resource...

vkurko avatar May 06 '25 15:05 vkurko