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
HistoryApiNavigationStateManager Add-on - Vaadin Add-on Directory
HistoryApiNavigationStateManager is a utility add-on for Vaadin 8 that enables the Navigator to work with the HTML5 History API.Issue Tracker
Source Code
Discussion Forum
HistoryApiNavigationStateManager Add-on version 0.1.0
The HistoryApiNavigationStateManager can be used with the Navigator. Also a factory called HistoryApiNavigatorFactory is available. This add-on is for Vaadin 8 only.
HistoryApiNavigationStateManager Add-on version 0.1.1
Fixed issue with default views, that is views with empty strings as view identifier
HistoryApiNavigationStateManager Add-on version 0.1.2
- Fixed problems with different context paths
- Updated Vaadin dependency to 8.0.6