open-nomad/ui/app/components/single-select-dropdown/index.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
501 B
Handlebars
Raw Normal View History

<div data-test-single-select-dropdown class="dropdown" ...attributes>
<PowerSelect
@options={{@options}}
@selected={{this.activeOption}}
@searchEnabled={{gt @options.length 10}}
@searchField="label"
@onChange={{action this.setSelection}}
@dropdownClass="dropdown-options"
as |option|>
<span class="ember-power-select-prefix">{{@label}}: </span>
<span class="dropdown-label" data-test-dropdown-option={{option.key}}>{{option.label}}</span>
</PowerSelect>
</div>