Select box solutions are rarely perfect for what you want.
They come with a myriad of options to configure every possible situation, and they make too many assumptions about how your select-box should behave.
This addon does less, and gives you the primitives to easily compose your own.
ember install @zestia/ember-select-box
https://zestia.github.io/ember-select-box
- Native select box (that supports complex values) ✔︎
- Faux select box (mimics a native select box, but easily stylable) ✔︎
- Navigatable options and groups ✔︎
- ARIA Attributes ✔︎
- Supports promises ✔︎
- Any HTML you want ✔︎
- Will never come with built-in styles ✔︎
- Ember Data friendly ✔︎
- Full control at all times with the API ✔︎
- Native-like typeahead behaviour ✔︎
- Very few issues over many years of Ember! ✔︎
- Easily create an autocompleter ✔︎
- Easily create a dropdown menu ✔︎
To create your own select box, make a new component that renders a select box:
...and then use it like this:
...which will render...
<div class="select-box foo">
<div class="select-box__selected-option">Foo 1</div>
<div class="select-box__options">
<div class="select-box__option">Foo 1</div>
<div class="select-box__option">Foo 2</div>
<div class="select-box__option">Foo 3</div>
</div>
</div>
...as you can see, apart from being able to select a value - this addon does very little out of the box! It's up to you to add the layer of behaviour that you require using the API.