ng-switchery

WebJar for ng-switchery

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

ng-switchery
Последняя версия

Последняя версия

1.0.0-alpha7
Дата

Дата

Тип

Тип

jar
Описание

Описание

ng-switchery
WebJar for ng-switchery
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/servergrove/NgSwitchery

Скачать ng-switchery

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : switchery jar [0.6.2,0.7)

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
1.0.0-alpha7