ng-switchery

WebJar for ng-switchery

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

ng-switchery
Last Version

Last Version

1.0.0-alpha7
Release Date

Release Date

Type

Type

jar
Description

Description

ng-switchery
WebJar for ng-switchery
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/servergrove/NgSwitchery

Download ng-switchery

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/ng-switchery/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>ng-switchery</artifactId>
    <version>1.0.0-alpha7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/ng-switchery/
implementation 'org.webjars.bower:ng-switchery:1.0.0-alpha7'
// https://jarcasting.com/artifacts/org.webjars.bower/ng-switchery/
implementation ("org.webjars.bower:ng-switchery:1.0.0-alpha7")
'org.webjars.bower:ng-switchery:jar:1.0.0-alpha7'
<dependency org="org.webjars.bower" name="ng-switchery" rev="1.0.0-alpha7">
  <artifact name="ng-switchery" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='ng-switchery', version='1.0.0-alpha7')
)
libraryDependencies += "org.webjars.bower" % "ng-switchery" % "1.0.0-alpha7"
[org.webjars.bower/ng-switchery "1.0.0-alpha7"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : switchery jar [0.6.2,0.7)

Project Modules

There are no modules declared in this project.

NGSwitchery

An AngularJS Directive for Switchery.

##Usage##

  1. Include switchery/dist/switchery[.min].css from your vendors/components folder in your links.
  2. Include switchery/dist/switchery[.min].js from your vendors/components folder in your scripts.
  3. Include ng-switchery.js in your scripts
  4. Declare a dependency on the NgSwitchery module
  5. Add the ui-switch attribute to a checkbox.

##Example##

Declare a dependency on the module

angular.module('myModule', ['NgSwitchery']);

Insert checkbox html

<input type="checkbox" class="js-switch" ui-switch checked />

Setting Options

<input type="checkbox" class="js-switch" ui-switch="{color: '#E43B11', secondaryColor: '#F89279'}" />

Disable switch

<input type="checkbox" class="js-switch" ui-switch ng-disabled="isDisabled" />

Bower install

bower install ng-switchery

##Alternative## You may also wish to look at how to achieve this with pure CSS.

##Notice on Version## This project is still in its very early stages and should not be considered production ready.

At this time we are no longer using this project, but will continue to maintain it until someone else agrees to take over. This means that updates will be slow as this is not a priority for us. New releases will be made as our team has time to volunteer to the project.

Versions

Version
1.0.0-alpha7