Skip to content

Commit

Permalink
Create a single-bar example of distribution-bar in the styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Jul 13, 2018
1 parent e435d54 commit 7e51502
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/app/components/freestyle/sg-distribution-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default Component.extend({
clearInterval(this.get('timer'));
},

distributionBarDatum: computed(() => {
return [{ label: 'one', value: 10 }];
}),

distributionBarData: computed(() => {
return [
{ label: 'one', value: 10 },
Expand Down
7 changes: 7 additions & 0 deletions ui/app/templates/components/freestyle/sg-distribution-bar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,11 @@
</div>
{{/freestyle-annotation}}
{{/collection.variant}}
{{#collection.variant key="single bar"}}
{{#freestyle-usage 'distribution-bar-single'}}
<div class="block" style="height:50px; width:600px;">
{{distribution-bar data=distributionBarDatum}}
</div>
{{/freestyle-usage}}
{{/collection.variant}}
{{/freestyle-collection}}

0 comments on commit 7e51502

Please sign in to comment.