VariablesControl
Extends:
A button group control for switching between different climate/energy variable dropdowns and selecting a specific variable using radio buttons.
Note that the dropdowns are an extension to the ButtonGroupControl class.
Template: VariablesControlTemplate
Constructor Summary
Public Constructor | ||
public |
|
Inherited Summary
From class ButtonGroupControl | ||
public |
The name of the currently active button. |
|
public |
Adds the control to the given map. |
|
public |
onAdd(): HTMLElement Creates the HTMLElement of the control, registers listeners, and returns it. |
Public Constructors
public constructor source
Override:
ButtonGroupControl#constructorParams:
Name | Type | Attribute | Description |
options.position | string |
|
The position of the control (one of the map corners). Possible values are 'topleft', 'topright', 'bottomleft' or 'bottomright'. |
options.initialActive | string |
|
If set, the name of the button that is initially active,
either |
options.initialVariable | string |
|
If set, the name of the variable that is initially selected, see template for possible values. |