In the Scheduler component I would like to use different forms depending on if there is already an entry in a day column or not. Meaning, if there is no event yet on a specific day, I would like to show a different form than if there is already an event.
I have put the code where I use the Scheduler component here:
https://stackblitz.com/edit/react-ts-kyjpoi
This doesn't work of course because of the missing dependencies but I wanted to show you what I've done. The important parts are:
Line 160: Here I hijack the double click event of the slot to determine if there is already an event in the column and depending on the answer, I set the variable isDayEmpty which I use in line 207 to determine the form.
The problem is, that as I have hijacked the double click event, nothing happens anymore when I double click in the Scheduler and the Dialog with the form does not open anymore. How can I trigger the standard double click behavior (open the dialog) using the correct form?
I have put the code where I use the Scheduler component here:
https://stackblitz.com/edit/react-ts-kyjpoi
This doesn't work of course because of the missing dependencies but I wanted to show you what I've done. The important parts are:
Line 160: Here I hijack the double click event of the slot to determine if there is already an event in the column and depending on the answer, I set the variable isDayEmpty which I use in line 207 to determine the form.
The problem is, that as I have hijacked the double click event, nothing happens anymore when I double click in the Scheduler and the Dialog with the form does not open anymore. How can I trigger the standard double click behavior (open the dialog) using the correct form?