salix/front/core/components/menu/menu.js

21 lines
452 B
JavaScript
Raw Normal View History

import ngModule from '../../module';
import Popover from '../popover/popover';
export default class Menu extends Popover {
$postLink() {
super.$postLink();
2019-09-30 09:30:54 +00:00
this.popover.addEventListener('click',
() => this.hide());
}
}
ngModule.component('vnMenu', {
template: require('../popover/popover.html'),
controller: Menu,
transclude: true,
bindings: {
onOpen: '&?',
onClose: '&?'
}
});