open-vault/ui/lib/core/addon/components/popup-menu.js
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

22 lines
613 B
JavaScript

import Component from '@ember/component';
import layout from '../templates/components/popup-menu';
/**
* @module PopupMenu
* `PopupMenu` displays a button that when pressed will toggle open a menu that is yielded in the content
* block.
*
* @example
* ```js
* <PopupMenu><nav class="menu"> <ul class="menu-list"> <li class="action"> <button type="button">A menu!</button> </li> </ul> </nav></PopupMenu>
* ```
*
* @param contentClass=''{String} A class that will be applied to the yielded content of the popup.
*/
export default Component.extend({
layout,
contentClass: '',
tagName: 'span',
});