Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.js
readme.styl
test.html
test.js

README.md

Toggle

The Toggle component creates a toggle.

Demo

Example

Code

HTML

<tonic-toggle
  id="toggle-example"
  label="Change">
</tonic-toggle>

Api

Properties

Property Type Description Default
id string Adds the id attribute required
name string Adds the name attributes.
disabled boolean Makes the toggle disabled. false
checked boolean Turns the toggle "on". false
label string Adds a label to the toggle
theme string Adds a theme color (light, dark or whatever is defined in your base CSS. light

Instance Methods

Method Description
change() Bind to change event.

Instance Members

Method Description
value A getter/setter that returns the current value (state) of the toggle.