Our pure JavaScript Scheduler component


Post by brdzamasina »

Hi guys,

what is the easiest way to call edit pop up after resize or drag of event is triggered in React app?

Thank you in advance for your answer.


Post by marcio »

Hello brdzamasina,

You can set up some listeners after the resize or drag of event, and from there, call eventEdit function https://www.bryntum.com/docs/scheduler/api/Scheduler/view/SchedulerBase#function-editEvent

listeners: {
	eventDrop: ({ source, eventRecords }) => {
		source.eventEdit(eventRecords[0]);
	},
	eventResizeEnd: ({ source, eventRecord }) => {
		source.eventEdit(eventRecord);
	}
}

https://www.bryntum.com/docs/scheduler/api/Scheduler/feature/EventDrag#event-eventDrop
https://www.bryntum.com/docs/scheduler/api/Scheduler/feature/EventResize#event-eventResizeEnd

Best regards,
Márcio


Post by brdzamasina »

Hi Marcio, thank you for your fast reply...

unfortunately i already tried following solution via api documentation and after that i was still getting an console error with following message ->

Uncaught (in promise) TypeError: source.eventEdit is not a function

that was the moment i contacted forum support :)


Post by mats »

I think Marcio meant:

source.editEvent(...)

Post by brdzamasina »

Thanks Mats, that was the problem...


Post Reply