https://github.com/a-x-/button-radio
Make pushable button radio behaviour.
https://github.com/a-x-/button-radio
Last synced: 3 months ago
JSON representation
Make pushable button radio behaviour.
- Host: GitHub
- URL: https://github.com/a-x-/button-radio
- Owner: a-x-
- License: mit
- Created: 2014-09-04T14:56:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-06T13:49:44.000Z (over 10 years ago)
- Last Synced: 2025-01-11T01:59:31.543Z (5 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
button-radio
============Make pushable button radio behaviour.
VanillaJS library without jQuery, bootstrap and etc. dependency.
# Example
```html
```
```js
var buttonRadio = new ButtonRadio('.button-radio-group', function (response) {
// The on change callback.
// callback code here ...
console.log(response);
// response:
// {
// prevButton: Node,
// curButton: Node,
// groupNode: Node,
// value: string,
// prevValue: string
// }
});
```# Status
This is under active development stage **(not production ready)**.
But i already use this library in my own projects.| **Idea** | Alpha | Beta | RC | Production |
|:--------:|:-----:|:----:|:--:|:----------:|
| **Ok** |v.0.1.x| — | — | — |# Using
# Demo
# License
All under MIT license.
# Contribution
You're welcome!
I watch github issues and mailbox ([email protected]).English typo-fixes are welcome too.