Directory

← Back

PopupExtension

A better PopupView

Author

Rating

Popularity

<100

PopupExtension is a popup that you can align relative to any component you want. No more fiddling with PopupButton or PopupView.

Warning, this is a very experimental Extension with one ugly hack to work around a lack in Vaadin's features. If your application looks broken all of a sudden, it's probably PopupExtension's fault.

Sample code

final Button button = new Button("Click Me");
final PopupExtension popupExtension = PopupExtension.extend(button);
button.addClickListener(new Button.ClickListener() {
	public void buttonClick(final ClickEvent event) {
		popupExtension.open();
	}
});
layout.addComponent(button);

popupExtension.setContent(getTestLayout());
popupExtension.setAnchor(Alignment.BOTTOM_RIGHT);
popupExtension.setDirection(Alignment.BOTTOM_RIGHT);

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

  • Mavenized project sources
  • Moved classes under org.vaadin.addons.popupextension folder
  • Fixed an issue where popup box wasn't removed from DOM when the Component was removed
Released
2017-07-18
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.1+
Vaadin 7.0+ in 0.1.0
Vaadin 8.0+ in 1.0.0
Browser
Firefox
Google Chrome

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