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.

Last updated