public class Prefetch
extends de.agilecoders.wicket.jquery.AbstractConfig
| Constructor and Description |
|---|
Prefetch() |
| Modifier and Type | Method and Description |
|---|---|
Prefetch |
withFilter(de.agilecoders.wicket.jquery.util.Json.RawValue filter)
A function with the signature filter(parsedResponse) that transforms the response body
into an array of datums.
|
Prefetch |
withTtl(long ttl)
The time (in milliseconds) the prefetched data should be cached in localStorage.
|
Prefetch |
withUrl(CharSequence url)
A URL to a JSON file containing an array of datums.
|
public Prefetch withUrl(CharSequence url)
url - mandatory parameterpublic Prefetch withTtl(long ttl)
ttl - the time (in milliseconds) the prefetched data should be cached in localStorage.public Prefetch withFilter(de.agilecoders.wicket.jquery.util.Json.RawValue filter)
filter - A function with the signature filter(parsedResponse) that
transforms the response body into an array of datumsCopyright © 2011–2014 AgileCoders. All rights reserved.