1.0.0 • Published 7 years ago
ember-cli-bar-view v1.0.0
ember-cli-bar-view
Addon renders a bars visualization of data. Designed to use as a filter
DEMO
This README outlines the details of collaborating on this Ember addon.
model() {
return Ember.makeArray([
{ label: 'Test 0', value: 90 },
{ label: 'Test 1', value: 86 },
{ label: 'Test 2', value: 77 },
{ label: 'Test 3', value: 60 },
{ label: 'Test 4', value: 50 },
{ label: 'Test 5', value: 40 },
{ label: 'Test 6', value: 30 },
{ label: 'Test 7', value: 15 },
{ label: 'Test 8', value: 1 },
]);
}
clickedItem: null,
actions: {
clickAction(item) {
this.set('clickedItem', item);
}
}
{{ember-cli-bar-view data=model clickAction=(action 'clickAction')}}Installation
git clone <repository-url>this repositorycd ember-cli-bar-viewnpm install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.