import { Component, EventEmitter, Input, Output, ViewChild } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { SwitchComponent } from "@progress/kendo-angular-inputs"; import { DynamicFormLayout, DynamicFormLayoutService, DynamicFormValidationService, DynamicFormControlComponent, DynamicSwitchModel } from "@ng-dynamic-forms/core"; @Component({ selector: "dynamic-kendo-switch", templateUrl: "./dynamic-kendo-switch.component.html" }) export class DynamicKendoSwitchComponent extends DynamicFormControlComponent { @Input() group: FormGroup; @Input() layout: DynamicFormLayout; @Input() model: DynamicSwitchModel; @Output() blur: EventEmitter = new EventEmitter(); @Output() change: EventEmitter = new EventEmitter(); @Output() focus: EventEmitter = new EventEmitter(); @ViewChild("kendoSwitch", { static: true }) kendoSwitch: SwitchComponent; constructor(protected layoutService: DynamicFormLayoutService, protected validationService: DynamicFormValidationService) { super(layoutService, validationService); } }