import { Component , OnInit , Input } from '@angular/core' ; import { ActionCollection } from 'src/app/Models/ActionCollection' ; import { DataService } from 'src/app/services/data.service' ; import { LiveAnnouncer } from '@angular/cdk/a11y' ; import { Utils } from 'src/app/Utils/Utils' ; @ Component ( { selector : 'app-action-collection-drop-down' , templateUrl : './action-collection-drop-down.component.html' , styleUrls : [ './action-collection-drop-down.component.scss' ] } ) export class ActionCollectionDropDownComponent { @ Input ( ) treeView = false ; @ Input ( ) actionCollection : ActionCollection ; @ Input ( ) displayText : string ; constructor ( public dataService , private liveAnnouncer ) { } closeChange ( state ) { if ( ! Utils . isIEOrEdge ) { this . liveAnnouncer . announce ( `Actions dropdown button is now ${ state ? 'Expanded' : 'Collapsed' }` ) ; } } }