WAI-ARIA accessible tab component for Ember.js.
http://instructure.github.io/ic-tabs
$ npm install ic-tabsor ...
$ bower install ic-tabsor just grab your preferred distribution from dist/.
Then include the script(s) into your application:
require('ic-tabs')
Register ic-tabs as a package, then:
define(['ic-tabs'], ...)
You ought to know what you're doing if this is the case.
<script src="bower_components/ic-styled/main.js"></script>
<script src="bower_components/ic-tabs/dist/globals/main.js"></script>
- associations between tabs and tab-panes are inferred by order.
ic-tab-listmust be an immediate child ofic-tabsic-tabmust be an immediate child ofic-tab-listic-tab-panelmust be an immediate child ofic-tabs
{{ic-tabs selected-index=prop}}- binds the active-index to prop, mostly useful forqueryParams.
$ git clone <this repo>
$ npm install
$ npm test
# during dev
$ broccoli serve
# edit examples/ files and karma.conf to point to
# localhost:4200/globals/main.js instead of dist/globals/main.js
# new tab
$ karma startMake a new branch, send a pull request, squashing commits into one change is preferred.
