Hi,
I need to render a custom editor modal, which I believe I can do using the popupOpen event. I was unable to use the EditorTemplate event because I need to customize the buttons in the footer. In my onPopupOpen function, I want to return my custom editorTemplate component but nothing is happening. My editorTemplate is a react functional component that returns JSX. Can you please advise? This seems like it should be a pretty straightforward request. Thanks.
function onPopupOpen(args) {
if (args.type === 'Editor') {
args.cancel = true;
setOpen(true);
return <EditorTemplate event={event} appointment={args.data} scheduleObjRef={scheduleObjRef} open={open} setOpen={setOpen} />;
}
}