2018-03-13 11:07:28 +00:00
|
|
|
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());
|
2018-03-13 11:07:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ngModule.component('vnMenu', {
|
|
|
|
template: require('../popover/popover.html'),
|
|
|
|
controller: Menu,
|
|
|
|
transclude: true,
|
|
|
|
bindings: {
|
|
|
|
onOpen: '&?',
|
|
|
|
onClose: '&?'
|
|
|
|
}
|
|
|
|
});
|