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

Support for right click in the time header

Asked by Viktor Eriksson
4 years ago.

If I have month in the timeheader, I would like to right click month and choose what month I want to jump to.
Is there a way of getting rightclick working without setting args.header.html = <div contextmenu=''...

and without using onBeforeTimeHeaderDomAdd, first it is painful to work with, second it only works for non floating header.

Answer posted by Dan Letecky [DayPilot]
4 years ago.

The latest sandbox build (2019.4.4122) now supports onTimeHeaderRightClick and onTimeHeaderRightClicked events (there is no functional difference between them as there is no default action for the right click). The time header right click is enabled by default (timeHeaderRightClickhandling = "Enabled").

https://javascript.daypilot.org/sandbox/

Comment posted by Viktor Eriksson
4 years ago.

Great ! Thanks :)

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