27 lines
637 B
Handlebars
27 lines
637 B
Handlebars
|
<div class="{{@wrapper-classes}}">
|
||
|
<ul>
|
||
|
{{#each this.args.list as |element index|}}
|
||
|
<li>
|
||
|
<div class="string-array-element-wrapper">
|
||
|
<Input @type="text" @value={{element.key}} />
|
||
|
<Input @type="text" @value={{element.value}} />
|
||
|
<div
|
||
|
class="{{@remove-element-classes}}"
|
||
|
type="button"
|
||
|
{{on "click" (fn this.removeElement index)}}
|
||
|
>
|
||
|
X
|
||
|
</div>
|
||
|
</div>
|
||
|
</li>
|
||
|
{{/each}}
|
||
|
|
||
|
</ul>
|
||
|
<div
|
||
|
class="{{@add-element-classes}}"
|
||
|
type="button"
|
||
|
{{on "click" this.addElement}}
|
||
|
>
|
||
|
Add element
|
||
|
</div>
|
||
|
</div>
|