ember-cli-switch
v1.0.0
Published
Ember cli a simple switch/toggle control. Control can handle 3 states and different skins
Downloads
1
Maintainers
Readme
ember-cli-switch
This README outlines the details of collaborating on this Ember addon.
Installation
- ember install ember-cli-switch
Usage
- Check demo app for more details...
Value={{value}}
{{em-switch
checked=value
}}
{{em-switch
onText='Is True?'
offText='Is False?'
checked=value
disabled=false
tabindex=1
showLabels=true
controlStyle='ember-cli-switch-control-default'
onChangeAction=null
}}
{{em-switch
onText='Is True?'
offText='Is False?'
checked=value
disabled=false
tabindex=1
showLabels=true
controlStyle='ember-cli-switch-control-thin'
onChangeAction=null
}}
<br /><br />
Undefined value: {{undefinedValue}}
{{em-switch
onText='Is True?'
offText='Is False?'
checked=undefinedValue
disabled=false
tabindex=1
showLabels=true
controlStyle='ember-cli-switch-control-thin'
onChangeAction=null
}}
{{em-switch
onText='Is True?'
offText='Is False?'
checked=undefinedValue
disabled=false
tabindex=1
showLabels=true
onChangeAction=(action 'pressAnyKey' undefinedValue)
}}
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.