> For the complete documentation index, see [llms.txt](https://docs.weatherlayers.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weatherlayers.com/weatherlayers-gl/controls/control.md).

# Control

Parent control

### Constructor

#### `Control(config: ControlConfig = {})`

### Methods

#### `addTo(target: HTMLElement): void`

Appends the control to the DOM as a child of the given `target`.

#### `prependTo(target: HTMLElement): void`

Prepends the control to the DOM as a child of the given `target`.

#### `remove(): void`

Removes the control from the DOM.

#### `setConfig(config: ControlConfig): void`

Updates the control config.
