Basil Bourque
Basil Bourque

Reputation: 339372

Change title of browser window in Vaadin 8

How does one change the title seen in the client web browser window or tab title bar in a Vaadin 8 app?

Upvotes: 1

Views: 2237

Answers (1)

Morfic
Morfic

Reputation: 15518

Although at the time of this writing the official version listed is 7.7.7 this applies for 8 as well, so as per the documentation, there's a dedicate @Title annotation.

Vaadin doc version

Alternatively as Vikrant Thakur's comment is suggesting, you can also use Page.getCurrent().setTitle("whatever") to dynamically update it.

Below you can see in action a sample based on the default app generated by the Vaadin maven archetype 8.0.0_rc1:

Vaadin - set page title

Upvotes: 12

Related Questions