WeatherBlox - Monthly Observations Layout
Monthly Observations LayoutObject
aeris.wxblox.layouts.local.MonthlyObservationsData Usage
The MonthlyObservations local layout is a full-page layout containing an embedded ArchiveObservations view to display daily observation summaries for the specified month with additional page controls for changing dates.

Examples
Display a full daily observation summary view for Seattle, WA for June 2017:
const view = new aeris.wxblox.layouts.local.MonthlyObservations('#wxblox', {
obs: {
range: {
from: '6/1/2017'
}
}
});
view.load({
p: 'seattle,wa'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
obs | Type: object () | |
months.items | Type: array () | |
years.from | Type: number () | |
years.to | Type: number () | |
years.items | Type: array () | |
selectors.years | Type: string () | |
selectors.months | Type: string () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
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