Interface Hotswapper.RefreshUiJs

All Superinterfaces:
Serializable
Enclosing class:
Hotswapper

@JsDefinition public static interface Hotswapper.RefreshUiJs extends Serializable
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 Type
    Method
    Description
    void
    refresh(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 - true to refresh the whole route chain, false to refresh only the route