Skip to content

wolfie/HistoryExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HistoryExtension

A HTML 5 history wrapper for Vaadin server-side.

Example usage:

HistoryExtension history = HistoryExtension.extend(myUI, myPopStateListener);

// init app state
history.replaceState(getCurrentAppState(), getPage().getLocation().toString());

addComponent(new Button("next step", new ClickListener() {
  public void buttonClick(final ClickEvent event) {
    history.pushState(getNextAppState(), "nextStep.html");
  }
}));

For complete demos, check out [simpledemo][sdlink], [tabledemo][tdlink] and [navigatordemo][ndlink] [sdlink]: https://github.com/wolfie/HistoryExtension/tree/master/src/test/java/com/github/wolfie/history/simpledemo [tdlink]: https://github.com/wolfie/HistoryExtension/tree/master/src/test/java/com/github/wolfie/history/tabledemo [ndlink]: https://github.com/wolfie/HistoryExtension/tree/master/src/test/java/com/github/wolfie/history/navigatordemo

About

A pushState extension for Vaadin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •