3

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?

5
  • Can you paste an image to show the problem? Commented Nov 13, 2017 at 4:27
  • @DanielKucal, please see update.
    – Richard77
    Commented Nov 13, 2017 at 4:43
  • 1
    @Richard77, yes that is how it works , please check , w3schools.com/bootstrap/bootstrap_dropdowns.asp and Commented Nov 13, 2017 at 4:44
  • 1
    Dropdowns are used to present e.g. some links like in the examples. I guess you want something like HTML <select> instead or ng2-select like Vivek said. Alternatively you can wrap the dropdown to implement value changes... Commented Nov 13, 2017 at 4:49
  • I guess my confusion comes from the fact that in ASP.NET webform everything is dropdown. Yes, I needed a select element.
    – Richard77
    Commented Nov 13, 2017 at 4:54

1 Answer 1

2

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.