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?

1

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

0

This one better to customize with CSS.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.