More utility components
One for a "map" of sorts and one for selecting one element of a list
This commit is contained in:
parent
07614e9a6d
commit
f0638af99f
5 changed files with 127 additions and 0 deletions
12
frontend-reactive/app/components/util/one-of-array.hbs
Normal file
12
frontend-reactive/app/components/util/one-of-array.hbs
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class="{{@wrapper-class}}">
|
||||
{{#each @elements as |element|}}
|
||||
<RadioButton
|
||||
@value="{{element}}"
|
||||
@groupValue={{@selected}}
|
||||
@name={{@name}}
|
||||
@required={{@required}}
|
||||
>
|
||||
{{element}}
|
||||
</RadioButton>
|
||||
{{/each}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue