Unpoly
3.14
API Tutorial Demo Install Changes Support GitHub Menu
Menu
Edit this page

API Passive updates
module up.radio

This package contains functionality to passively receive updates from the server.


Guides

  • Polling
  • Notification flashes

Features

Essentials

[up-hungry]
HTML

Elements with an [up-hungry] attribute are updated whenever the server sends a matching element, even if the element is not targeted.

[up-poll]
HTML

Elements with an [up-poll] attribute are reloaded from the server periodically.

All features

HTML
[up-flashes] stable

Use an [up-flashes] element to show confirmations, alerts or warnings.

JS
up:fragment:hungry stable

Before an [up-hungry] element is added to a render pass, an event up:fragment:hungry is emitted on that element.

JS
up:fragment:poll stable

This event is emitted before a polling fragment is reloaded from the server.

HTML
[up-hungry] stable

Elements with an [up-hungry] attribute are updated whenever the server sends a matching element, even if the element is not targeted.

HTML
[up-poll] stable

Elements with an [up-poll] attribute are reloaded from the server periodically.

JS
up.radio.config stable

Configures defaults for passive updates.

JS
up.radio.startPolling(fragment, [options]) stable

Starts polling the given element.

JS
up.radio.stopPolling(fragment) stable

Stops polling the given element.

Made by Henning Koch
Imprint
Privacy policy