open-nomad/ui/app/templates/components/popover-menu.hbs
2020-01-23 16:34:18 -08:00

13 lines
485 B
Handlebars

<BasicDropdown
@horizontalPosition="right"
@onOpen={{action (queue (action (mut isOpen) true) (action capture))}}
@onClose={{action (mut isOpen) false}} as |dd|
>
<dd.Trigger data-test-popover-trigger class={{concat "popover-trigger button is-primary " triggerClass}} {{on "keydown" (action "openOnArrowDown" dd)}}>
{{label}} {{x-icon "chevron-down" class="is-text"}}
</dd.Trigger>
<dd.Content class="popover-content">
{{yield dd}}
</dd.Content>
</BasicDropdown>