ember-cli addon for bootstrap-switch.
npm install ember-cli-bootstrap-switch

Pull requests are always welcome.
install via npm
$ npm install ember-cli-bootstrap-switch --save-dev
make ember-cli fetch internal dependencies
$ ember g ember-cli-bootstrap-switch
`Basic Usage
$3
Exmaple 1:`
{{bs-switch name="my-bs-switch"
btnSize="small"
status=bsSwitchStatusValue
callback="bsSwitchChanged"}}`Example 2:
`
{{bs-switch name="my-bs-switch"
btnSize="small"
onText="Up"
offText="Down"
onColor='success'
offColor='warning'
labelText="Thumbs"
status=bsSwitchStatusValue
callback="bsSwitchChanged"}}`$3
The bootstrap resources will not be imported to your resources by default. If you want the add-on to add it selectively you have to specify it in the
Brocfile.js
(No option means false by default)`
var app = new EmberAddon({
'ember-cli-bootstrap-switch': {
"importBootstrapCSS": true,
"importBootstrapJS": true,
"importBootstrapSwitchCSS": true,
"importBootstrapSwitchJS": true
}
});
`Demo
You can clone this repo and run the app `
$ sudo npm install -g ember-cliclone the codebase
$ git clone http://github.com/vsymguysung/ember-cli-bootstrap-switch.git
$ cd ember-cli-bootstrap-switchinstall dependencies
$ npm install; bower installfire up local server
$ ember servevisit the page with the following url.
http://localhost:4200
``#### Inspired by
* http://www.bootstrap-switch.org
#### License
MIT license.