Skip to Content
0
Jun 28, 2020 at 03:15 PM

UI5 PlanningCalendar - getting row and time on right mouse click

53 Views

Hi,

I'm trying to get the row and time when doing a right mouse click in a PlanningCalendar row.

This is just as the built-in event "intervalSelect".

I can retrieve the DOM element with "var oElement = document.elementFromPoint(oEvent.pageX, oEvent.pageY)".

Its id ends with "-CalRow-AppsInt". It is the interval placeholder.
According to the Control Tree this a child of the PlanningCalendarRowTimeLine, which is a child of the PlanningCalendarListItem. I assume retrieving the Timeline with its properties and the number of the placeholder I could determine the date/time.

However, all my attempts to retrieve these controls failed.

Does anybody know how this works?