# ember-cli-bootstrap-switch

> ember-cli addon for bootstrap-switch.

Latest version **1.0.0** (published 2016-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-bootstrap-switch
pnpm add ember-cli-bootstrap-switch
yarn add ember-cli-bootstrap-switch
bun add ember-cli-bootstrap-switch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-11-29 |
| First published | 2015-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Guysung Kim |
| Maintainers | vsymguysung |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-cli-bootstrap-switch
- Repository: https://github.com/vsymguysung/ember-cli-bootstrap-switch
- Homepage: https://github.com/vsymguysung/ember-cli-bootstrap-switch#readme
- Issues: https://github.com/vsymguysung/ember-cli-bootstrap-switch/issues
- npm.io page: https://npm.io/package/ember-cli-bootstrap-switch

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.7

## Recent versions

- 1.0.0 (latest) — 2016-11-29
- 0.1.7 — 2015-05-20
- 0.1.6 — 2015-03-22
- 0.1.5 — 2015-03-12
- 0.1.4 — 2015-03-12
- 0.1.3 — 2015-01-16
- 0.1.2 — 2015-01-15
- 0.1.1 — 2015-01-15
- 0.1.0 — 2015-01-15

## README

# Ember-cli-bootstrap-switch

[![Build Status](https://travis-ci.org/vsymguysung/ember-cli-bootstrap-switch.svg)](http://travis-ci.org/vsymguysung/ember-cli-bootstrap-switch)
[![NPM Downlaads](https://img.shields.io/npm/dm/ember-cli-bootstrap-switch.svg)](https://www.npmjs.org/package/ember-cli-bootstrap-switch)

## Description
Ember-cli-bootstrap-switch is an Ember CLI add-on. This addon actually converts bootstrap-switch to an Ember component which is
a re-usable unit. Pull requests are welcome.


## Note

Pull requests are always welcome.


## Installation
```
# 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

### Handlebar Template
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"}}

```

### Brocfile.js ###
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-cli

# clone the codebase
$ git clone http://github.com/vsymguysung/ember-cli-bootstrap-switch.git
$ cd ember-cli-bootstrap-switch

# install dependencies
$ npm install; bower install

# fire up local server
$ ember serve

# visit the page with the following url.
http://localhost:4200
```





#### Inspired by

* http://www.bootstrap-switch.org

#### License
MIT license.

---
_Source: https://npm.io/package/ember-cli-bootstrap-switch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
