我正在使用angular ui-select指令,并尝试使用ng-disabled选项禁用它。
<ui-select multiple ng-model="address.selected"
theme="bootstrap"
ng-disabled="true"
reset-search-input="true"
style="width: 300px;">
这是the人http://plnkr.co/edit/julETCG4zCGAxFJ0PSBF?p=preview
文本框的大小缩小为ng-disabled =“ true”。
theme
从更新bootstrap
到select2
,如下所示:
<ui-select multiple ng-model="address.selected"
theme="select2"
ng-disabled="true"
reset-search-input="true"
style="width: 300px;">
如果您想要bootstrap
主题,则将其添加到样式中:
.ui-select-multiple.ui-select-bootstrap {
min-height: 34px;
height: auto;
padding: .3em;
}
如图所示这里。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句