Skip to content

IconSwitch

Panoramax.components.ui.IconSwitch ⇐ lit.LitElement

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

new IconSwitch()

Icon Switch button, based on a native checkbox. Checked state corresponds to "right" option selected, unchecked to "left".

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

iconSwitch.properties : Object

Component properties.

Kind: instance property of IconSwitch
Properties

Name Type Description
checked boolean True if checked
disabled boolean Inactive if true
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 IconSwitch