Examples › Custom content
You can also display custom content in the context menu by providing a render callback to theshowContextMenu
function instead of an array of items.
The render callback will receive a close
function that you can use to close the menu.
Have a look at the example below to see how it works:
Right-click on the image to trigger the context menu:

Picture by Kristina Yadykina
Head over to the next example to discover other features.