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

19 lines
648 B
Handlebars
Raw Normal View History

2019-11-06 07:11:12 +00:00
<BasicDropdown
@horizontalPosition="right"
@disabled={{this.isDisabled}}
@onOpen={{action (queue (action (mut this.isOpen) true) (action this.capture))}}
@onClose={{action (mut this.isOpen) false}} as |dd|
2019-11-06 07:11:12 +00:00
>
<dd.Trigger
data-test-popover-trigger
class={{concat "popover-trigger button is-primary " this.triggerClass (if this.isDisabled " is-disabled")}}
aria-label={{this.tooltip}}
{{on "keydown" (action "openOnArrowDown" dd)}}
>
{{this.label}} {{x-icon "chevron-down" class="is-text"}}
2019-11-06 07:11:12 +00:00
</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>