Richard77
Richard77

Reputation: 21621

NGX-Bootstrap: dropdown doesn't show the selected item

I'd like to use ngx-angular dropdown. I've followed the installation instruction from their official page. The dropdown is displaying, but when I select an item, it doesn't appear at the top like a regular dropdown.

I can't find any working example online. Even on their official page, when you select an item, nothing happens.

Can someone tell whether I need to add code to make it work?

EDIT

1) Initial state

enter image description here

2) Expend and Select any item

enter image description here

3) Button Dropdown is still selected

enter image description here

Is this how it's supposed to work?

Upvotes: 3

Views: 6236

Answers (1)

Vivek Doshi
Vivek Doshi

Reputation: 58543

First what you are trying to implement is simple drop-down, That's not a select box , what you need is select box not drop-down.

https://valor-software.com/ngx-bootstrap/#/dropdowns#nested

Q : I can't find any working example online. Even on their official page, when you select an item, nothing happens.

A : It's because, they just created a demo of drop-down as name suggests, you need to code on click event,

Here is the link of what you need (from same providers) :

https://valor-software.com/ng2-select/


Extra (if you need more) :

https://github.com/valor-software/ng2-plans

Upvotes: 2

Related Questions