Popover using onEventRightClick

Asked by Albert
4 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
4 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]
4 years ago.

Thanks for posting your solution!

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