WeatherBlox - Calendar
CalendarObject
aeris.wxblox.views.CalendarData Usage
The Calendar component displays past daily summaries alongside extended forecast information for the requested month at a particular location in a calendar layout.

Examples
Display a calendar view for Minneapolis, MN for 9/25/2017:
const view = new aeris.wxblox.views.Calendar('#wxblox', {
range: {
from: '9/25/2017'
}
});
view.load({
p: 'minneapolis,mn'
});Display the calendar view for Seattle, WA for the month of November 2016:
const view = new aeris.wxblox.views.Calendar('#wxblox', {
summary: true,
range: {
from: '11/1/2016'
}
});
view.load({
p: 'seattle,wa'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
range.from | Type: string () | |
range.to | 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