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

Popover using onEventRightClick

Asked by Albert
8 days 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
8 days 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]
8 days 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]
8 days ago.

Thanks for posting your solution!

New Reply
This reply is
Your name (optional):