Tabs based off of MUI-CSS. Usage is dead simple. id
's of frost-tab must match id
in supplied argument to frostTabs
. The id
of the current element is used to toggle display: none | block
.
Usage
See the demo application for usage information.
git clone <name of repo>;
npm install && bower install;
Installation
ember install ember-frost-tabs
Example
Template
Controller
import Ember from 'ember'
export default Ember.Controller.extend({
queryParams: ['selectedTab'],
selectedTab: 'controller',
actions: {
tabSelected (tab) {
this.set('selectedTab', tab)
}
}
})
Route
import Ember from 'ember'
export default Ember.Route.extend({
queryParams: {
selectedTab: {
as: 'tab'
}
}
})
Development
Setup
git clone git@github.com:ciena-frost/ember-frost-tabs.git
cd ember-frost-tabs
npm install && bower install
Development Server
A dummy application for development is available under ember-frost-tabs/tests/dummy
.
To run the server run ember server
(or npm start
) from the root of the repository and
visit the app at http://localhost:4200.
Testing
Run npm test
from the root of the project to run linting checks as well as execute the test suite
and output code coverage.