Is there a way to disable and make all fields non editable (input / mat-select / textfield / option/input/mat-checkbox etc) inside a Form
(input / mat-select / textfield / option/input/mat-checkbox etc)
Since disabled attribute doesn't work on some components, what I did is - I set the pointer-events:none on the css to cover all the components inside the div content.
Here's my CSS code:
.disabledDiv { pointer-events: none; opacity: 0.4; }
Here's my HTML:
And on my TS: editData() { this.isActiveDiv = true; } 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
And on my TS:
editData() { this.isActiveDiv = true; }