mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
33c872c859
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
20 lines
535 B
Handlebars
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>
|