open-vault/ui/app/templates/components/popup-menu.hbs
2018-04-03 09:16:57 -05:00

16 lines
564 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-transparent " (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}}