Nicolas
Nicolas

Reputation: 604

ngx-select - How to display custom items (different styles) in dropdown

I was trying to display the dropdown items using ngx-select with customized styling. The dropdown items are arrays of another components (with component specific styling). How to achieve this? Here is my code selectDropdown

Upvotes: 0

Views: 2004

Answers (1)

Lucho
Lucho

Reputation: 1547

Do you mean the regular bootstrap styling? If so you need to add in your index.html before you ng node like this:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<my-app>loading</my-app>

From the documentation as well it says for customization:

Currently, the component contains CSS classes named within BEM Methodology. As well it contains the "Bootstrap classes". Recommended use BEM classes for style customization.

Upvotes: 1

Related Questions