WAI-ARIA accessible tab component for Ember.js.
http://instructure.github.io/ic-tabs
$ npm install ic-tabs
or ...
$ bower install ic-tabs
or 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-list
must be an immediate child ofic-tabs
ic-tab
must be an immediate child ofic-tab-list
ic-tab-panel
must 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 start
Make a new branch, send a pull request, squashing commits into one change is preferred.