ngx-config-form
Version:
use configuration to generate form
12 lines (11 loc) • 436 B
TypeScript
import { EventEmitter } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { IErrorInfo } from './IErrorInfo';
import { IFormSetting } from './IFormSetting';
export interface IForm {
cfFormSetting: IFormSetting;
cfFormGroup: FormGroup;
onReady(): EventEmitter<void>;
notifyValueChange(key: string, value: any): any;
notifyValidatedInfo(key: string, isValid: boolean, info?: IErrorInfo): any;
}