import { Component , Input } from '@angular/core' ; import { FormControl , FormGroup } from '@angular/forms' ; import { CmdbMode } from '../../../framework/modes.enum' ; @ Component ( { selector : 'cmdb-docapi-settings-builder-style-step' , templateUrl : './docapi-builder-style-step.component.html' , styleUrls : [ './docapi-builder-style-step.component.scss' ] } ) export class DocapiBuilderStyleStepComponent { @ Input ( ) set preData ( data ) { if ( data !== undefined ) { this . styleForm . patchValue ( data ) ; } } @ Input ( ) public mode : CmdbMode ; public modes = CmdbMode ; public styleForm : FormGroup ; constructor ( ) { this . styleForm = new FormGroup ( { template_style : new FormControl ( '' ) } ) ; } }