Interface Hotswapper.RefreshUiJs
- All Superinterfaces:
Serializable
- Enclosing class:
Hotswapper
What a hotswap asks of the browser of a UI with push, as a JavaScript
definition for
Page.executeJs(Class).
The refresh itself is done by the dev tools, which listen for the event so that they can keep the scroll positions across it.
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidrefresh(boolean fullRefresh) Asks the dev tools to refresh the UI.
-
Method Details
-
refresh
@JsExpression("window.dispatchEvent(new CustomEvent(\'vaadin-refresh-ui\', { detail: { fullRefresh: $0 } }))") void refresh(boolean fullRefresh) Asks the dev tools to refresh the UI.- Parameters:
fullRefresh-trueto refresh the whole route chain,falseto refresh only the route
-