2019-11-06 07:11:12 +00:00
|
|
|
<BasicDropdown
|
|
|
|
@horizontalPosition="right"
|
2020-07-09 20:19:07 +00:00
|
|
|
@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
|
|
|
>
|
2020-01-30 21:40:17 +00:00
|
|
|
<dd.Trigger
|
|
|
|
data-test-popover-trigger
|
2020-07-09 20:19:07 +00:00
|
|
|
class={{concat "popover-trigger button is-primary " this.triggerClass (if this.isDisabled " is-disabled")}}
|
|
|
|
aria-label={{this.tooltip}}
|
2020-01-30 21:40:17 +00:00
|
|
|
{{on "keydown" (action "openOnArrowDown" dd)}}
|
|
|
|
>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{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">
|
2019-11-12 01:05:25 +00:00
|
|
|
{{yield dd}}
|
2019-11-06 07:11:12 +00:00
|
|
|
</dd.Content>
|
|
|
|
</BasicDropdown>
|