Skip to main content
Version: v25

ContextMenuOptions

Interface

Properties

items_processor

Optional

Provide this function if you want to change the set of actions being displayed in the context menu.

You can filter out, add yours and re-order items.

The library will call your function each time it wants to display a context menu and with provide a list of items to display. This function should return an array of items to display.

Type

ContextMenuItemsProcessor


renderer_factory

Optional

Note: This API is experimental and might be changed significantly in the future releases. By providing this function you could override the default renderer for context menu.

Type

ContextMenuRendererFactory