HistoryApiNavigationStateManager Add-on
HistoryApiNavigationStateManager is a utility add-on for Vaadin 8 that enables the Navigator to work with the HTML5 History API.
Do you want to use Vaadin 8's support of the HTML5 History API together with the Navigator? You then found the right add-on! This add-on provides a custom NavigationStateManager that uses the HTML5 History API instead of URI fragments. For convenience a Navigator factory is enabled, so that you can simply replace existing Navigator constructor calls with the appropriate factory function.
Sample code
// ... public class DemoUI extends UI { @Override protected void init(VaadinRequest request) { // ... final Panel contentPanel = new Panel(); setNavigator(HistoryApiNavigatorFactory.createHistoryApiNavigator(this, contentPanel); // ... } // ... }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Released
- 2017-07-28
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 8.0+
- Browser
- N/A