Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
7e51502c
Commit
7e51502c
authored
6 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Create a single-bar example of distribution-bar in the styleguide
parent
e435d542
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui/app/components/freestyle/sg-distribution-bar.js
+4
-0
ui/app/components/freestyle/sg-distribution-bar.js
ui/app/templates/components/freestyle/sg-distribution-bar.hbs
+7
-0
...pp/templates/components/freestyle/sg-distribution-bar.hbs
with
11 additions
and
0 deletions
+11
-0
ui/app/components/freestyle/sg-distribution-bar.js
+
4
-
0
View file @
7e51502c
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
ui/app/templates/components/freestyle/sg-distribution-bar.hbs
+
7
-
0
View file @
7e51502c
...
...
@@ -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
}}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help