mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
32 lines
771 B
Handlebars
32 lines
771 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
~}}
|
|
|
|
<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|
|
|
>
|
|
<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 "keyup" (action "openOnArrowDown" dd)}}
|
|
>
|
|
{{this.label}}
|
|
<Hds::Icon @name="chevron-down" @isInline={{true}} />
|
|
</dd.Trigger>
|
|
<dd.Content data-test-popover-menu class="popover-content">
|
|
{{yield dd}}
|
|
</dd.Content>
|
|
</BasicDropdown>
|