import { ChangeDetectorRef , Component , OnDestroy } from '@angular/core' ; import { RuntimeService } from '../../services/runtime.service' ; import { GadgetInstanceService } from '../../grid/grid.service' ; import { GadgetBase } from '../_common/gadget-base' ; import { EndPointService } from '../../configuration/tab-endpoint/endpoint.service' ; import { GadgetPropertyService } from '../_common/gadget-property.service' ; import { OptionsService } from "../../configuration/tab-options/service" ; @ Component ( { selector : 'app-dynamic-component' , moduleId : module . id , templateUrl : './view.html' , styleUrls : [ '../_common/styles-gadget.css' ] } ) export class PropertyListGadgetComponent extends GadgetBase implements OnDestroy { gadgetHasOperationControls = false ; showConfigurationControl = false ; constructor ( protected _procMonRuntimeService , protected _gadgetInstanceService , protected _propertyService , protected _endPointService , private _changeDetectionRef , protected _optionsService ) { super ( _procMonRuntimeService , _gadgetInstanceService , _propertyService , _endPointService , _changeDetectionRef , _optionsService ) ; } public preRun ( ) { } public run ( ) { this . initializeRunState ( true ) ; } public stop ( ) { this . setStopState ( false ) ; } public updateData ( data ) { } public updateProperties ( updatedProperties ) { this . showOperationControls = true ; } ngOnDestroy ( ) { } }