2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
}}
|
|
|
|
|
2020-03-24 10:55:45 +00:00
|
|
|
<input
|
|
|
|
...attributes
|
2020-12-01 15:45:09 +00:00
|
|
|
{{did-insert (set this 'input')}}
|
2020-03-24 10:55:45 +00:00
|
|
|
type="checkbox"
|
|
|
|
checked={{if checked 'checked' undefined}}
|
|
|
|
id={{concat 'toggle-button-' guid}}
|
|
|
|
onchange={{action 'change'}}
|
|
|
|
/>
|
2020-12-01 15:45:09 +00:00
|
|
|
<label
|
|
|
|
{{did-insert (set 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>
|