ContextMenuAttributes

Attribute names of <vaadin-context-menu>, for use with setAttribute.

Properties

Link copied to clipboard
const val closeOn: String

Event name to listen for closing the context menu.

Link copied to clipboard
const val listenOn: String

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
const val opened: String

True if the overlay is currently displayed.

Link copied to clipboard
const val openOn: String

Event name to listen for opening the context menu.

Link copied to clipboard
const val position: String

Position of the overlay with respect to the target. Supported values: null, top-start, top, top-end, bottom-start, bottom, bottom-end, start-top, start, start-bottom, end-top, end, end-bottom.

Link copied to clipboard
const val renderer: String

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

Link copied to clipboard
const val selector: String

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

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.