edcarroll / ng2-semantic-ui

Semantic UI Angular Integrations (no jQuery)
https://edcarroll.github.io/ng2-semantic-ui/
MIT License
615 stars 224 forks source link

Multi-select dropdown [feature] allow create dropdown implementation with icon button #320

Open kunjan343 opened 6 years ago

kunjan343 commented 6 years ago

I have requirement to implement multi select drop down menu which open using icon button.

I tried to customize dropdown by own but since it is not proper solution

Libaray :

Angular : 4.3.2 Semantic-ui : 2.2.9 Ng2-semantic-ui : 0.9.6

TroyMurphy commented 6 years ago

Until this gets added as a feature, hopefully this can save somebody else some time: I had to add my own creation implementation too, but I wish I had known that the multi select has an exposed function of selectOption(option) which is super useful. I hooked up a create component exposed by an action input next to the select which emits the new object, and as long as the mutli-select is async using [optionsLookup], it's as painless as calling

<my-create-component
    (newObject)="multiSelectID.selectOption($event)"
></my-create-component>