ui选择从btn-default更改为btn-primary

时间:2016-01-10 10:15:33

标签: angularjs ui-select2

我使用ui-select-directive(angular-ui / ui-select)和bootstrap-theme。

用于显示select-control,它使用btn-default-class。 我更喜欢使用btn-primary-class。

当我在浏览器中打开调试器并切换类时,它看起来就像我想要的那样;)

这是我的选择控件

                <ui-select ng-model="currentCtrl.Field.Format.Format.Name" theme="bootstrap" id="fieldtype" ng-disabled="currentCtrl.RecordViewType!=0">
                    <ui-select-match placeholder="Search...">{{$select.selected.Name}}</ui-select-match>
                    <ui-select-choices repeat="item.Name as item in currentCtrl.SomeItems | filter: $select.search">
                        <div ng-bind-html="item.Name | highlight: $select.search"></div>
                    </ui-select-choices>
                </ui-select>

这就是之前的样子: enter image description here

这是改变课程后的样子。 enter image description here

有没有办法简单地为所有选择框更改此类?

0 个答案:

没有答案