Ghost/ghost/admin/app/components/gh-search-input.hbs
Kevin Ansfield a788a9673c
Extracted Admin's search behaviour from component to service (#20008)
ref https://linear.app/tryghost/issue/MOM-1

- pre-requisite to exposing the search behaviour to the editor for internal linking
2024-04-10 11:44:24 +00:00

23 lines
782 B
Handlebars

<div ...attributes>
<div class="ember-power-select-search">
<PowerSelect
@search={{perform this.search.searchTask}}
@onChange={{this.openSelected}}
@onClose={{this.onClose}}
@placeholder="Search site"
@searchEnabled={{false}}
@triggerComponent={{component "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>
</div>
</div>