open-nomad/ui/app/templates/components/popover-menu.hbs

19 lines
608 B
Handlebars
Raw Normal View History

2019-11-06 07:11:12 +00:00
<BasicDropdown
@horizontalPosition="right"
@disabled={{isDisabled}}
2019-11-06 07:11:12 +00:00
@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 (if isDisabled " is-disabled")}}
aria-label={{tooltip}}
{{on "keydown" (action "openOnArrowDown" dd)}}
>
2019-11-06 07:11:12 +00:00
{{label}} {{x-icon "chevron-down" class="is-text"}}
</dd.Trigger>
2019-12-03 06:16:56 +00:00
<dd.Content data-test-popover-menu class="popover-content">
{{yield dd}}
2019-11-06 07:11:12 +00:00
</dd.Content>
</BasicDropdown>