Package com.vaadin.client.flow
Class FragmentHandler
- java.lang.Object
-
- com.vaadin.client.flow.FragmentHandler
-
public class FragmentHandler extends Object
Handler that makes sure that scroll to fragment and hash change event work when there has been navigation viarouter linkto a path with fragment.This class will trigger scroll to fragment and hash change event once the response from server has been processed, but only if the server did not override the location.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description FragmentHandler(String previousHref, String newHref, Registry registry)Creates a new fragment handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind()Adds a request response tracker to the given registry for making sure the fragment is handled correctly if the location has not been updated during the response.
-