WeatherBlox - Advisories
AdvisoriesObject
aeris.wxblox.views.AdvisoriesData Usage
/alerts (1)
The Advisories view displays currently active alerts for a single location within the United States. Additional details about any active alerts can be viewed either modally from this view or using a static link to another URL depending on the view’s configuration.

Examples
Display a minimal view listing only the advisories currently in effect for Seattle, WA.
const view = new aeris.wxblox.views.Advisories('#wxblox');
view.load({
p: 'seattle,wa'
});Display full advisory details for advisories currently in effect for Austin, TX.
var view = new aeris.wxblox.views.Advisories('#wxblox', {
fullDetails: true
});
view.load({
p: 'austin,tx'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
fullDetails | Type: boolean () | |
modal | Type: boolean () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
renderNoData | Type: boolean () | |
request | Type: object () | |
Methods
The following methods are supported by instances of this view:
rendered()show()hide()params()setUnits(:number)units()enabled()setMetric(:boolean)load(:object)refresh()isMetric()Events
The following events are triggered by instances of this view:
click:advisoryrenderrender:beforerender:afterload:startload:doneload:errorchange:units