You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add client-side API to listen to view lifecycle events #1895
As a developer I want to execute some JS code in response to entering / leaving a view.
Example: when starting navigation from any one view to another I want to change the page title to ... so that the window title shown in the browser UI clearly indicates that a transition is in progress.
The view life cycle events I would like to have access to:
Closing: Flow dispatches a vaadin-navigated window event after each navigation. For the other phases, the server-side BeforeLeaveObserver/BeforeEnterObserver/AfterNavigationObserver can trigger client-side code via executeJs. A new issue can be opened for a concrete gap.
Activity
gilberto-torrezan commentedon Jun 26, 2017
Awaits for #512
totally-not-ai commentedon Dec 5, 2026
Closing: Flow dispatches a
vaadin-navigatedwindow event after each navigation. For the other phases, the server-sideBeforeLeaveObserver/BeforeEnterObserver/AfterNavigationObservercan trigger client-side code viaexecuteJs. A new issue can be opened for a concrete gap.