Hi,
I'm building a custom event editor within the Calendar component. I need to determine if the click event I'm editing an existing event or a new one. i've got a few options but wondering if there's one I can rely on in the future (i.e. eventRecord.data.id begin with 'id_generatedClassDefEx_' or eventRecord.data.name == 'New event'
- is there a recommended way ??
Cheers
John
listeners: {
beforeEventEdit({ eventRecord }) {
_setAppointmentID(eventRecord.data.id);
console.log(eventRecord);
dmx.parse('modal_event_editor.show()');
// Store record being edited, to be able to write changes back to it later
editingRecord = eventRecord;
return false;
}
},