angular7 - 如何禁用“ngx-intl-tel-input”库中的标志?
问题描述
如何禁用“ngx-intl-tel-input”库中的标志,我禁用表单中的输入字段有 ngx-intl-tel-input 但没有禁用标志。请参阅已修复的问题“ https://github.com/webcat12345/ngx-intl-tel-input/issues/205 ”
解决方案
此问题已在最新版本中修复。要禁用您的控制,包括国家下拉菜单:
phoneForm = new FormGroup({
phone: new FormControl({
value: undefined,
disabled: true
}, [Validators.required])
});
或者
this.phoneForm.controls['phone'].disable();
推荐阅读
- python - python - 如何在Python中使用tkinter的两个刻度滑块的值移动刻度滑块的滑块?
- python - 如何在使用 h5py 的基本数学运算上不使用所有内存?
- javascript - 删除或隐藏谷歌助手中的“取消”建议输入
- firebase - Flutter + Cloud Firestore 在桌面应用程序中工作吗?
- go - Golang fmt.Println 定时器
- python - 如何获取作为字典键值的每个数组的时差?
- asp.net - 如何从浏览器下载具有用户权限的内网文件
- reactjs - 使用 React.lazy 预加载
- python - 如何从DataFrame中的名称中提取首字母
- complexity-theory - 以下代码的渐近复杂度是多少