如何根据需要创建用户界面选择字段? [英] How to make a ui-select field as required?
本文介绍了如何根据需要创建用户界面选择字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要在表单中将以下字段(设置)作为必填字段.我该怎么做?
I want to make the following field (settings) in my form as a required field in. How can I do it?
<div class="form-group">
<label class="col-xs-5 control-label"> Settings*</label>
<div class="col-xs-7">
<ui-select multiple tagging="adPreferredEmailDomainPatternTransform" id="emailDomainPatternListInput"
tagging-tokens="SPACE|," theme="bootstrap"
ng-disabled="settings.enableAuthentication == 'false'"
ng-model="settings.emailDomainPatternList">
<ui-select-match>{{$item.displayFormat}}</ui-select-match>
<ui-select-choices repeat="item in emailDomainPatterns">
{{item.displayFormat}}
</ui-select-choices>
</ui-select>
</div>
</div>
推荐答案
我认为这是一个已知且长期存在的错误.有关更多信息,请参见此GitHub问题.
I think that this is a known and long-standing bug. See this GitHub issue for more information.
这篇关于如何根据需要创建用户界面选择字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文