2021-01-25 18:13:54 +00:00
|
|
|
{{#let @components.MenuItem as |MenuItem|}}
|
2020-08-11 17:02:51 +00:00
|
|
|
<MenuItem
|
2021-01-25 18:13:54 +00:00
|
|
|
class={{if this.selected 'is-active'}}
|
|
|
|
{{did-insert this.connect}}
|
|
|
|
{{did-insert (set this "selected" @selected)}}
|
|
|
|
{{did-update (set this "selected" @selected)}}
|
|
|
|
{{will-destroy this.disconnect}}
|
2020-09-01 18:13:11 +00:00
|
|
|
...attributes
|
2021-01-25 18:13:54 +00:00
|
|
|
@onclick={{action @onclick this}}
|
|
|
|
@selected={{this.selected}}
|
2020-08-11 17:02:51 +00:00
|
|
|
>
|
|
|
|
<BlockSlot @name="label">
|
|
|
|
{{yield}}
|
|
|
|
</BlockSlot>
|
|
|
|
</MenuItem>
|
|
|
|
{{/let}}
|