-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#62 - add three-state boolean configuration
- Loading branch information
Showing
20 changed files
with
1,739 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/webapp/resources/bower_components/nz-toggle/.bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "nz-toggle", | ||
"main": [ | ||
"dist/nz-toggle.js", | ||
"dist/nz-toggle.css" | ||
], | ||
"version": "2.1.0", | ||
"homepage": "https://github.com/nozzle/nz-toggle", | ||
"authors": [ | ||
"tannerlinsley" | ||
], | ||
"description": "Double and Triple-State Toggle for AngularJS", | ||
"keywords": [ | ||
"toggle", | ||
"angularJS", | ||
"indeterminate", | ||
"checkbox", | ||
"double", | ||
"triple", | ||
"state" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
], | ||
"_release": "2.1.0", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.1.0", | ||
"commit": "867979a9be91b83dad4c6aec9a975eb9917c8ca9" | ||
}, | ||
"_source": "git://github.com/tannerlinsley/nz-toggle.git", | ||
"_target": "~2.1.0", | ||
"_originalSource": "nz-toggle", | ||
"_direct": true | ||
} |
74 changes: 74 additions & 0 deletions
74
src/main/webapp/resources/bower_components/nz-toggle/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# nz-toggle | ||
|
||
__Double and Triple-State Toggle for Angular__ | ||
|
||
## Features | ||
- Native checkboxes are ugly, inconsistent, and involve insane CSS tweaks to style. nz-toggle is a simple directive that relieves all of the pain of styling `<input type="checkbox">` | ||
- Indeterminate checkboxes are great for nested checklists, but emit a `false` value in that state. nz-toggle's `tri-toggle` mode fixes this by truthfully providing 3 separate value states. | ||
- Tooltips for the tri-toggle impaired. | ||
|
||
[Demo](http://codepen.io/anon/pen/yNjyME) | ||
|
||
## Get Started | ||
|
||
Install via NPM or Bower | ||
|
||
`npm install --save nz-toggle` | ||
`bower install --save nz-toggle` | ||
|
||
Include Files | ||
|
||
```html | ||
<link rel="stylesheet" type="text/css" href=".../nz-toggle/dist/nz-toggle.min.css" /> | ||
<script type="text/javascript" src=".../nz-toggle/dist/nz-toggle.min.js"></script> | ||
``` | ||
|
||
## Using the directive | ||
|
||
```html | ||
<nz-toggle | ||
tri-toggle | ||
on-toggle="myFunction()" | ||
ng-model="value"> | ||
</nz-toggle> | ||
|
||
<!-- Default Values : false-val = 0, null-val = null, true-val = true; --> | ||
``` | ||
|
||
```html | ||
<nz-toggle | ||
tri-toggle | ||
on-toggle="myFunction()" | ||
ng-model="value" | ||
val-true="'myString'" | ||
val-false="0" | ||
val-null="-1"> | ||
</nz-toggle> | ||
|
||
``` | ||
|
||
Visit the [demo](http://codepen.io/anon/pen/yNjyME) for more usage information | ||
|
||
## License | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Tanner Linsley | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
27 changes: 27 additions & 0 deletions
27
src/main/webapp/resources/bower_components/nz-toggle/bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "nz-toggle", | ||
"main": ["dist/nz-toggle.js", "dist/nz-toggle.css"], | ||
"version": "2.1.0", | ||
"homepage": "https://github.com/nozzle/nz-toggle", | ||
"authors": [ | ||
"tannerlinsley" | ||
], | ||
"description": "Double and Triple-State Toggle for AngularJS", | ||
"keywords": [ | ||
"toggle", | ||
"angularJS", | ||
"indeterminate", | ||
"checkbox", | ||
"double", | ||
"triple", | ||
"state" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
Oops, something went wrong.