ember-cli-switch

1.0.0 • Public • Published

ember-cli-switch

Build Status Code Climate

Demo URL.

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

Running Tests

  • npm test (Runs ember 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/.

Package Sidebar

Install

npm i ember-cli-switch

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

205 kB

Total Files

10

Last publish

Collaborators

  • chauhans