FearlessHyena
FearlessHyena

Reputation: 4065

Specifying a custom position for the vaadin notification

I went through the javadocs for the Notification class and came across this

In addition to the basic pre-configured types, a Notification can also be configured to show up in a custom position, for a specified time (or until clicked), and with a custom stylename

this is exactly what I want

I have a TextField component (in the center of the screen) and I want the notification to show up to the right of it (with some margin). How do I achieve this?

the setPosition() method accepts an enum so how exactly do you specify something other than the pre-configured Position types?

Upvotes: 0

Views: 997

Answers (1)

Henri Kerola
Henri Kerola

Reputation: 4967

Unfortunately you cannot position a Notification relative to a component. There is one addon called ContextHelp, which may provide functionality you need.

Upvotes: 2

Related Questions