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

4 lines
258 B
Handlebars
Raw Normal View History

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