2020-03-24 10:55:45 +00:00
|
|
|
<input
|
|
|
|
...attributes
|
|
|
|
{{ref this "input"}}
|
|
|
|
type="checkbox"
|
|
|
|
checked={{if checked 'checked' undefined}}
|
|
|
|
id={{concat 'toggle-button-' guid}}
|
|
|
|
onchange={{action 'change'}}
|
|
|
|
/>
|
2020-03-04 18:11:23 +00:00
|
|
|
<label {{ref this "label"}} for={{concat 'toggle-button-' guid}}>
|
2020-03-24 10:55:45 +00:00
|
|
|
{{yield (hash
|
|
|
|
click=(action 'click')
|
|
|
|
)}}
|
2019-12-17 18:47:37 +00:00
|
|
|
</label>
|