linstrom/frontend-reactive/app/components/util/multiselect.hbs

13 lines
325 B
Handlebars
Raw Normal View History

<div class={{@wrapper-class}}>
{{#each this.args.elements as |element|}}
<label class={{@label-class}}>
{{element.description}}
<Input
@type="checkbox"
name="{{element.name}}"
@checked={{element.checked}}
{{on "change" this.onChange}}
/>
</label>
{{/each}}
</div>