search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to access date time information from Calendar onEventClick

Asked by Anonymous
18 days ago.

When clicking a calendar event, how can I find out what is the date time where the user clicked?

I can access event start and end, but I need to access the information what time during the event has been clicked?

Answer posted by Dan Letecky [DayPilot]
17 days ago.

The latest sandbox build (2023.3.5726) now supports a new getCoords() method which you can use to get the date/time value corresponding to the current mouse position:

onEventClick: args => {
  const coords = dp.getCoords();
  const currentTime = coords?.time;
  // ...

See also:

New Reply
This reply is
or drop files here
Your name (optional):