Skip to content →

Vaadin Link Button

If you have a regular button in vaadin, you lose the ability to copy the URL via a right click and the context menu. The goal was to be able to create a button, which looks like a regular Valo themed button, but also allowed for a context menu click. I’ve seen a few solutions on Vaadin forums for Vaadin 6, but there was nothing for Valo, and nothing with a FontAwesome icon. Take a look at the solution below, on the left we have the context menu and the ability to Save/Copy the link, and on the right we see the ability to see the link on hover.

First, we add our new class:

Next, we add our button, taking note of our icons and layout:

See the example on github.

Published in Tech


Leave a Reply

Your email address will not be published. Required fields are marked *