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
1 year 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]
1 year 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:

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.