21 lines
452 B
JavaScript
Executable File
21 lines
452 B
JavaScript
Executable File
import ngModule from '../../module';
|
|
import Popover from '../popover/popover';
|
|
|
|
export default class Menu extends Popover {
|
|
$postLink() {
|
|
super.$postLink();
|
|
this.popover.addEventListener('click',
|
|
() => this.hide());
|
|
}
|
|
}
|
|
|
|
ngModule.component('vnMenu', {
|
|
template: require('../popover/popover.html'),
|
|
controller: Menu,
|
|
transclude: true,
|
|
bindings: {
|
|
onOpen: '&?',
|
|
onClose: '&?'
|
|
}
|
|
});
|