import { Component , Input , ViewEncapsulation , OnInit , ChangeDetectorRef } from '@angular/core' ; import { OverlayContainer } from '@angular/cdk/overlay' ; import { NavBarLinkRef } from '@alfresco/adf-extensions' ; @ Component ( { selector : 'app-button-menu' , templateUrl : './button-menu.component.html' , host : { class : 'app-button-menu' } , encapsulation : ViewEncapsulation . None } ) export class ButtonMenuComponent implements OnInit { @ Input ( ) item : NavBarLinkRef ; constructor ( private cd , private overlayContainer ) { this . overlayContainer . getContainerElement ( ) . classList . add ( 'aca-menu-panel' ) ; } ngOnInit ( ) { this . cd . detectChanges ( ) ; } trackById ( _index , obj ) { return obj . id ; } }