Is there a way to get the Date/Time of the cell where the context menu is opened? Currently I am only able to use ‘getSelection’ after the context menu is opened to get the date/time of the currently selected cell however, right clicking on the scheduler doesn’t always trigger a cell selection. So, often the date/time returned from ‘getSelection’ is the date/time of the last cell that was selected and not the current cell where the context menu is being opened. This behavior is also present in the context menu demo of the scheduler.
Unfortunately, it is not possible on that way.
You could get the date on
cellClick or on
Also, in the ‘dialog’ window will receive data for the current cell.
If you give more information what you want to achieve, I could give you a better solution (workaround).
Hi, we are trying to create copy and paste for events with context menu.
Is there any way for getting the date/hour when the right mouse button is pressed?
Looking forward to hearing from you soon,
If you are trying to make a copy and paste then you are opening the context menu and it automatically selects the event.
In the contextMenuItemClick you get menu, appointment, event. In the event is stored all the info about the appointment, so yes you can get from and to properties and every other which you need from the appointment.
Have a look here: https://codesandbox.io/s/wispy-resonance-4iwn4m?file=/src/App.vue
You must be logged in to reply to this topic.