21 lines
410 B
Handlebars
21 lines
410 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
<input
|
|
...attributes
|
|
{{did-insert (set this 'input')}}
|
|
type="checkbox"
|
|
checked={{if checked 'checked' undefined}}
|
|
id={{concat 'toggle-button-' guid}}
|
|
onchange={{action 'change'}}
|
|
/>
|
|
<label
|
|
{{did-insert (set this 'label')}}
|
|
for={{concat 'toggle-button-' guid}}
|
|
>
|
|
{{yield (hash
|
|
click=(action 'click')
|
|
)}}
|
|
</label> |