Ghost/ghost/admin/app/components/gh-search-input.hbs
Kevin Ansfield 33c872c859 Added <GhInputWithSelect> component
refs https://github.com/TryGhost/Team/issues/987

- `<GhInputWithSelect>` acts as a typical text input element but will also show options that are filtered whilst typing. Useful for inputs where there should be suggestions or the ability to choose an existing option
- updated `<GhSearchInput>` to use the renamed and slightly modified trigger
2021-08-20 14:33:30 +01:00

20 lines
535 B
Handlebars

<PowerSelect
class="ember-power-select-search"
@search={{action "search"}}
@onChange={{action "openSelected"}}
@placeholder="Search site..."
@searchEnabled={{false}}
@triggerComponent="gh-input-with-select/trigger"
@renderInPlace={{true}}
@loadingMessage="Loading"
@extra={{hash
autofocus=true
inputType="search"
inputIcon="search"
inputIconClass="gh-nav-search-icon"
}}
as |name select|
>
{{highlighted-text name.title select.searchText}}
</PowerSelect>