Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradoyler/jquery.togglecontrols
A declarative way to use $.toggleClass
https://github.com/bradoyler/jquery.togglecontrols
Last synced: 11 days ago
JSON representation
A declarative way to use $.toggleClass
- Host: GitHub
- URL: https://github.com/bradoyler/jquery.togglecontrols
- Owner: bradoyler
- Created: 2014-12-04T00:22:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-14T00:31:35.000Z (over 8 years ago)
- Last Synced: 2024-10-11T01:14:19.050Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://bradoyler.github.io/jquery.togglecontrols/examples/
- Size: 773 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### toggleControls - jQuery plugin to help with `$.toggleClass()`
#### [Demo](http://bradoyler.github.io/jquery.togglecontrols/examples/)
#### Default Options
```js
{
toggleClass: 'is-hidden',
targetActiveClass: 'is-active',
eventName:'click',
selector:'.tc-dialog',
activeTarget:false
}
```#### Example
```html
$(function (){
$('.js-toggle').togglecontrols();
});Panel
```