Directory

← Back

Vaadin ContextMenu

Unified contextual popup for all Vaadin components.

Author

Rating

Popularity

100+

With Vaadin ContextMenu you can add context menu popup to any Vaadin component. It uses similar API and styling with Vaadin's MenuBar component.

Features:

  • Dynamic, hierarchical context menus
  • Icon support
  • Check/uncheck menu items
  • Keyboard navigation
  • Special item and property support for Grid, Table and TreeTable

Note: Vaadin ContextMenu uses new context click features introduced in Vaadin 7.6.

Sample code


// Create a context menu for 'someComponent'
ContextMenu contextMenu = new ContextMenu(somComponent, true);

// Checkable item
final MenuItem item = contextMenu.addItem("Checkable", e -> {
            Notification.show("checked: " + e.isChecked());
        });
item.setCheckable(true);
item.setChecked(true);

// Disabled item
MenuItem item2 = contextMenu.addItem("Disabled", e -> {
            Notification.show("disabled");
});
item2.setEnabled(false);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Support for Vaadin Framework 8.0

Released
2017-02-21
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Vaadin 8.10+ in 3.1.0
Vaadin 8.6+ in 3.0.2
Vaadin 8.4+ in 2.1.0
Vaadin 7.6+ in 0.7.5
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Microsoft Edge

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online