The reload interval in milliseconds.
Defaults to up.radio.config.pollInterval
, which defaults to 30 seconds.
Controls polling while the fragment's layer is covered by an overlay.
When set to 'front'
, polling will pause while the fragment's layer is covered by an overlay.
When the fragment's layer is uncovered, polling will resume.
When set to 'any'
, polling will continue on background layers.
The URL from which to reload the fragment.
Defaults to the URL this fragment was originally loaded from.
The HTTP method used to reload the fragment.
A relaxed JSON object with additional request headers.
A relaxed JSON object with additional parameters that should be sent as the request's query string or payload.
When making a GET
request to a URL with a query string, the given { params }
will be added
to the query parameters.
How to handle failed server responses.
By default, polling will skip server responses with an error code, even when the response contains a matching fragment. After the configured interval, the server will be polled again.
Set [up-fail=false]
to render any response that contains a matching fragment,
even with a 4xx or 5xx status code.
Whether to preserve the polling fragment's data object through reloads.
Disables form controls while the link is loading.
A placeholder to show in the targeted fragment while new content is loading.
Existing children of the targeted fragment will be hidden during the request. When the request ends for any reason, all changes will be reverted.
You can either pass a HTML string or refer to a template, optionally with variables.
If this link opens a new overlay, the placeholder will be shown temporary overlay with the same visual style and open animation.
The name of a preview that temporarily changes the page while new content is loading.
The preview changes will be reverted automatically when the request ends for any reason.
Whether to set feedback classes while loading content.