open-vault/ui/app/templates/components/popup-menu.hbs
2018-08-29 20:40:32 -06:00

16 lines
558 B
Handlebars

{{#basic-dropdown class="popup-menu" horizontalPosition="auto-right" verticalPosition="below" onOpen=onOpen as |d|}}
{{#d.trigger tagName="button" class=(concat "popup-menu-trigger button is-ghost" (if d.isOpen " is-active")) data-test-popup-menu-trigger=true}}
{{i-con
glyph="more"
class="has-text-black auto-width"
size=16
aria-label="More options"
}}
{{/d.trigger}}
{{#d.content class=(concat "popup-menu-content " contentClass)}}
<div class="box">
{{yield}}
</div>
{{/d.content}}
{{/basic-dropdown}}