WeatherBlox - Forecast
ForecastObject
aeris.wxblox.views.ForecastData Usage
The Forecast view displays weather forecast data for a single location. Additionally, this view allows users to expand the forecast day to view more detailed forecast data.

Examples
Display the extended detailed forecast for Minneapolis, MN:
const view = new aeris.wxblox.views.Forecast('#wxblox');
view.load({
p: 'minneapolis,mn'
});Display the hourly forecast for Seattle, WA for the next 24 hours:
const view = new aeris.wxblox.views.Forecast('#wxblox', {
type: 'hourly'
});
view.load({
p: 'seattle,wa',
limit: 24
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
type | Type: string () | |
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:
renderrender:beforerender:afterload:startload:doneload:errorchange:units