uklance / tapestry-stitch

Sample components and concepts in Tapestry 5
MIT License
14 stars 7 forks source link

Create an infinitescroll component #4

Open uklance opened 11 years ago

uklance commented 11 years ago

Based on http://www.infinite-scroll.com/

/**
 * Each of these will be passed to the event in order
 */
@Parameter
private Object[] contexts;

/**
 * Event will be fired for each context value returned in the contexts parameter
 */
@Parameter(value = "literal:scroll")
private String event;

This component will initially render links for each page but will then apply the infinite-scroll script to hide the navigation and swap for scrolling functionality.