ContextMenuMixin

external interface ContextMenuMixin : ItemsMixin

Inheritors

Properties

Link copied to clipboard
abstract var closeOn: String

Event name to listen for closing the context menu.

Link copied to clipboard

Defines a (hierarchical) menu structure for the component. If a menu item has a non-empty children set, a sub-menu with the child items is opened next to the parent menu on mouseover, tap or a right arrow keypress.

Link copied to clipboard
abstract var listenOn: HTMLElement

The target element that's listened to for context menu opening events. By default the vaadin-context-menu listens to the target's vaadin-contextmenu events.

Link copied to clipboard
abstract val opened: Boolean

True if the overlay is currently displayed.

Link copied to clipboard
abstract var openOn: String

Event name to listen for opening the context menu.

Link copied to clipboard

Custom function for rendering the content of the menu overlay. Receives three arguments:

Link copied to clipboard
abstract var selector: String

CSS selector that can be used to target any child element of the context menu to listen for openOn events.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun open(e: Event?)

Opens the overlay.

Link copied to clipboard
abstract fun requestContentUpdate()

Requests an update for the content of the menu overlay. While performing the update, it invokes the renderer passed in the renderer property.