ember-aria-checkbox
v1.0.7
Published
An Ember Checkbox addon widget based on the WAI-ARIA authoring practices.
Downloads
113
Maintainers
Readme
ember-aria-checkbox
An Ember Checkbox addon widget based on the WAI-ARIA authoring practices. Fore more info, visit the page
Tutorial
There is also a tutorial available here to learn how to create this addon from scratch.
Class Diagram
Component Interface
Demo
Installation
ember install ember-aria-checkbox
Usage
Example Markup:
{{#aria-checkbox}}Lettuce{{/aria-checkbox}}
Default checked state:
{{#aria-checkbox checked=true}}Lettuce{{/aria-checkbox}}
You can also pass in any model value to the checked state to reflect the checkbox state.
this.set('isLettuce', true);
{{#aria-checkbox checked=isLettuce}}Lettuce{{/aria-checkbox}}
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.