Package-level declarations

Types

Link copied to clipboard

Attribute names of <vaadin-switch>, for use with setAttribute.

Link copied to clipboard
abstract external class SwitchElement : HTMLElement, CheckboxMixin, ElementMixin, PolylitMixin, LumoInjectionMixin

<vaadin-switch> is a binary on/off switch control for a single setting.

Link copied to clipboard

Typed event names of <vaadin-switch>, for use with addEventHandler.

Functions

Link copied to clipboard
fun createSwitch(configure: SwitchElement.() -> Unit = {}): SwitchElement

Creates a <vaadin-switch> element. The custom element is registered on first use.

Link copied to clipboard

Imports @vaadin/switch/src/vaadin-switch.js, registering <vaadin-switch>, and returns the element class.