Interface UIInternals.TitleJs
- All Superinterfaces:
Serializable
- Enclosing class:
UIInternals
How the title of the page is set, as a JavaScript definition for
Page.executeJs(Class).
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.4
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionSets the title of the page.setTitleAfterNavigation(String title) Sets the title of the page once the client side router has finished navigating, so that the title of the page it navigated away from is not the one that sticks.
-
Field Details
-
SET_TITLE
What setting the title does, shared by the plain call and the one that waits for the navigation. The indentation ends up inside the body of the function the bundle carries, where JavaScript ignores it.- See Also:
-
-
Method Details
-
setTitle
@JsExpression(" document.title = $0;\n if(window?.Vaadin?.documentTitleSignal) {\n window.Vaadin.documentTitleSignal.value = $0;\n }\n") PendingJavaScriptResult setTitle(String title) Sets the title of the page.- Parameters:
title- the title to set- Returns:
- the pending result, which is what cancels the update when a later one replaces it
-