import { Component , OnInit , TemplateRef } from '@angular/core' ; import { ThyPopover } from 'ngx-tethys' ; @ Component ( { selector : 'thy-menu-group-example' , templateUrl : './group.component.html' , styleUrls : [ './group.component.scss' ] } ) export class ThyMenuGroupExampleComponent implements OnInit { constructor ( private popover ) { } ngOnInit ( ) { } openActionMenu ( event , template ) { this . popover . open ( template , { origin : event . currentTarget as HTMLElement , insideClosable : true } ) ; } }