从表单生成表 [英] Generate table from form
本文介绍了从表单生成表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单组:
public transactionOrRefundRequestForm: FormGroup = new FormGroup({销售请求:新表单组({标题:新表单组({类型:new FormControl('', [Validators.required]),类:new FormControl('', [Validators.required]),MessageCategory: new FormControl('', [Validators.required]),Sale: new FormControl('', [Validators.required]),ID: new FormControl('', [Validators.required]),协议:new FormControl('', [Validators.required]),服务:new FormControl('', [Validators.pattern(/^-?(0|[1-9]\d*)?$/), Validators.maxLength(10)]),}),付款请求:新表单组({销售数据:新表单组({SaleID:新表单组({TransactionID: new FormControl(''),时间戳:new FormControl('')})}),付款交易:新表格组({数量:新的 FormGroup({货币:new FormControl(''),RequestedAmount: new FormControl('')}),专有标签:new FormGroup({打印:new FormControl('')})}),付款数据:新表格组({类型:new FormControl('')})}),})});
我需要从中创建一个表.像这样: