Skip to content

Switch

Panoramax.components.ui.Switch ⇐ lit.LitElement

Kind: static class of Panoramax.components.ui
Extends: lit.LitElement
Emits: change
Element: pnx-switch
Change=${dosomething}: > Label text ```

new Switch()

Switch button, based on a native checkbox.

Example
```html <pnx-switch checked="true" name="my-switch"

switch.properties : Object

Component properties.

Kind: instance property of Switch
Properties

Name Type Description
checked boolean True if checked
value boolean The current switch value
name string The switch name (also serves as ID)

"change"

Event for switch status change

Kind: event emitted by Switch