Hello @Adel_de_Clevermate,
As stated in the fullcalendar documentation, eventClick
receives an object in param
Thank you for highlighting this, I will update the documentation snippets accordingly
eventClick
must be called as following
- eventClick: (event, jsEvent, view) => {
+ eventClick: ({ event, jsEvent, view }) => {
Here is a working implementation of redirecting to a workspace with a selected record when clicking on an event :
eventClick: ({ event, jsEvent, view }) => {
this.router.transitionTo(
"project.rendering.workspaces.view",
"931477a9-d33e-4a05-8664-6b0489613b50", // your workspace id
{ queryParams: { "collection1.selectedRecords": [event.id] } }
);
};
If you have any other questions on the calendar subject, please ask them in this thread
Regards,
Nicolas