open-vault/ui/app/templates/components/popup-menu.hbs

16 lines
558 B
Handlebars
Raw Normal View History

2018-04-03 14:16:57 +00:00
{{#basic-dropdown class="popup-menu" horizontalPosition="auto-right" verticalPosition="below" onOpen=onOpen as |d|}}
2018-08-30 02:40:32 +00:00
{{#d.trigger tagName="button" class=(concat "popup-menu-trigger button is-ghost" (if d.isOpen " is-active")) data-test-popup-menu-trigger=true}}
2018-04-03 14:16:57 +00:00
{{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}}