0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/templates/components/gh-search-input.hbs
Kevin Ansfield 580eaf0e6b Display "No results" message when no search results found
no issue
- add a "No results" element to the search dropdown on creation and show/hide it appropriately
2015-09-02 09:23:20 +01:00

16 lines
511 B
Handlebars

{{gh-selectize
placeholder="Search"
selection=selection
content=content
loading=isLoading
optionValuePath="content.id"
optionLabelPath="content.title"
optionGroupPath="content.category"
openOnFocus=false
maxItems="1"
on-init="onInit"
on-focus="onFocus"
on-blur="onBlur"
update-filter="onType"
select-item="openSelected"}}
<button class="gh-nav-search-button" {{action "focusInput"}}><i class="icon-search"></i><span class="sr-only">Search</span></button>