2

I'm here for a question

What is the best way to change the theme of ui-select input fields, Hack CSS ? Do you have other leads?

mlhDev
  • 2,235
  • 1
  • 22
  • 43
Sagiliste
  • 27
  • 1
  • 5
  • Sagiliteste, have you considered [selecting an aswer as "Accepted"](https://stackoverflow.com/help/someone-answers)? – lealceldeiro Nov 06 '17 at 19:03

2 Answers2

2

As per documentation you can set a theme for all ui-select in your app by doing this:

app.config(function(uiSelectConfig) {
  uiSelectConfig.theme = 'bootstrap';
  //... other config options
});

... or for a specific ui-select with this code:

<ui-select theme="bootstrap">
    ...
</ui-select>

Available themes are: bootstrap, select2 and selectize

If you want to set a custom css rules for any specific element generated by the ui-select directive you should create a custom css file and override the rules defined in the ui-select's css file

lealceldeiro
  • 14,342
  • 6
  • 49
  • 80
0

This one better to customize with CSS.

Community
  • 1
  • 1
vovchisko
  • 2,049
  • 1
  • 22
  • 26