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

Popover using onEventRightClick

Asked by Albert
2 years ago.

Is there some tutorial or example on how to open a popover when right click on event?

Using something like bootstrap-popover or webui-popover.

I need some customized view when performing right click.

Kind regards.

Answer posted by Albert
2 years ago.

I've solved with the following code:

Added a unique class on event inside onBeforeEventRender:

args.data.cssClass = args.data.id;

Later, inside onEventRightClick I just look for that class and I activate the popover:

$('.' + event.data.code).webuiPopover({{title: 'sample', content: 'description'})
$('.' + event.data.code).webuiPopover('show')

Comment posted by Dan Letecky [DayPilot]
2 years ago.

You can open a custom popover using the onEventRightClick event:
https://api.daypilot.org/daypilot-scheduler-oneventrightclick/

You can also enable the built-in Bubble popover using eventRightClickHandling property:

dp.eventRightClickHandling = "Bubble";

See also:
https://api.daypilot.org/daypilot-scheduler-eventrightclickhandling/
https://doc.daypilot.org/scheduler/event-bubble/

Comment posted by Dan Letecky [DayPilot]
2 years ago.

Thanks for posting your solution!

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