import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { BsModalRef } from 'ngx-bootstrap/modal';
import { FrameDetailComponent } from '../../../../frame/core/detail/frame.detail';

@Component({
  selector: 'app-cf-enrol-param-detail',
  templateUrl: './cf-enrol-param-detail.component.html',
  styleUrls: ['./cf-enrol-param-detail.component.scss']
})
export class CfEnrolParamDetailComponent extends FrameDetailComponent implements OnInit {

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'param_type': [null, Validators.compose([Validators.required])],
      'param_name': [null, Validators.compose([Validators.required])],
      'param_value': [null, Validators.compose([Validators.required])],
      'param_note': [null]
    });
  }

  ngOnInit(): void {
  }

}
