WeatherBlox - Sun & Moon Layout
Sun & Moon LayoutThe SunMoon local layout is a full-page layout containing an embedded SunMoon component to display monthly sun and moon data for the requested month with additional page controls.

Examples
Display a full local sun and moon view for Phoenix, AZ for the current month:
const view = new aeris.wxblox.layouts.local.SunMoon('#wxblox');
view.load({
p: 'phoenix,az'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
data | Type: object () | |
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