consul/ui-v2/app/templates/components/toggle-button.hbs

4 lines
216 B
Handlebars

<input type="checkbox" checked={{if checked 'checked' undefined}} id={{concat 'toggle-button-' guid}} onchange={{action 'change'}} />
<label for={{concat 'toggle-button-' guid}}>
{{yield (action 'click')}}
</label>