You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/components/toggle-button/index.hbs

13 lines
304 B

<input
...attributes
{{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 (hash
click=(action 'click')
)}}
</label>