https://github.com/kellyselden/ember-checkbox-with-label
Ember component for a checkbox wrapped in a label
https://github.com/kellyselden/ember-checkbox-with-label
Last synced: 3 months ago
JSON representation
Ember component for a checkbox wrapped in a label
- Host: GitHub
- URL: https://github.com/kellyselden/ember-checkbox-with-label
- Owner: kellyselden
- License: mit
- Created: 2016-06-19T22:24:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T16:36:38.000Z (over 6 years ago)
- Last Synced: 2025-04-23T19:14:22.489Z (3 months ago)
- Language: JavaScript
- Size: 299 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-checkbox-with-label
==============================================================================[](https://greenkeeper.io/)
[](https://badge.fury.io/js/ember-checkbox-with-label)
[](https://travis-ci.org/kellyselden/ember-checkbox-with-label)
[](https://www.emberjs.com/)Ember component for a checkbox wrapped in a label
### Demo
https://kellyselden.github.io/ember-checkbox-with-label
Installation
------------------------------------------------------------------------------```
ember install ember-checkbox-with-label
```Usage
------------------------------------------------------------------------------```hbs
{{checkbox-with-label
checked=checked
text="text goes here"
disabled=disabled
update=(action (mut checked))
}}
```or with positional params
```hbs
{{checkbox-with-label
checked
"text goes here"
disabled=disabled
update=(action (mut checked))
}}
```or with a content block
```hbs
{{#checkbox-with-label
checked
disabled=disabled
update=(action (mut checked))
}}
text goes here
{{/checkbox-with-label}}
```License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).