Reputation: 339372
How does one change the title seen in the client web browser window or tab title bar in a Vaadin 8 app?
UI
with my Layout
object, how can I specify a title for that UI’s window?UI
, how do I set the title in the native title bar of that window/tab?Upvotes: 1
Views: 2237
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.
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:
Upvotes: 12