Edit this page

up.radio up.radio.config
JavaScript property

Configures defaults for passive updates.


Value

[config.hungrySelectors] Array<string> optional

An array of CSS selectors that is replaced whenever a matching element is found in a response. These elements are replaced even when they were not targeted directly.

By default this contains the [up-hungry] attribute.

The configured selectors will be used to find hungry elements in the current page. For each matching element a target will be derived from that specific element. E.g. when you configure up.radio.config.hungrySelectors.push('input'), a given input will be targeted with its derived selector (like input[name=email]).

For this to work hungry elements must have a derivable target selector.

[config.pollInterval=30000] number optional

The default polling interval in milliseconds.