在输入中显示值 [英] Display value inside input
本文介绍了在输入中显示值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设计了我的表格到这里.现在我还想在 Amounts 列的行中显示特定行的数量.
I have designed my form till here. Now I further want to show the amount of the particular row over there in the row in Amounts column.
<input type="text" class="form-control" formControlName="itemamt" readonly value="{{itemrow.get('itemqty').value * itemrow.get('itemrate').value}}">
推荐答案
要在 FormArray 中传递 FormControll 值,您可以使用 angular 执行类似的操作,
To pass FormControll Value inside FormArray you can do something like this with angular,
form = new FormGroup({
name: new FormControl('Name'),
username: new FormArray([
new FormControl("value"),
{firstName:"Andrew", lastName:"Donald"},
{firstName:"Charles", lastName:"Jackson"}
])
});
希望对你有帮助.
这篇关于在输入中显示值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文