Hi,
When an event is dragged and dropped anywhere, I'd like to set it's "saved" attribute (initially true) to false.
This works when dragging within one scheduler, however I can't seem to change anything on drop to a second scheduler. I've tried this under listeners:
eventDrop({eventRecords} : any) {
eventRecords.forEach((eventRecord : any) => {
eventRecord.data = {...eventRecord.data,
saved: false,
eventColor: "purple"
}
})
},
As well as this:
beforeEventDropFinalize({ context } : any) {
const record = context.eventRecords[0]
record.data = {...record.data, saved: false}
}
Both of these work when dragging within one scheduler, however I am unable to get the change to happen when dragging from one scheduler to another (it seems that the event is removed on the first scheduler, and added to the second scheduler which may be why I can't edit it).
How can I create the desired functionality? Thank you!