-
-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathtemplate.hbs
More file actions
28 lines (26 loc) · 915 Bytes
/
template.hbs
File metadata and controls
28 lines (26 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{{#if (and trimmedQuery search.isIdle)}}
{{#modal-dialog
tetherTarget="[data-search-box]"
attachment="top left"
clickOutsideToClose=true
onClose=(action "clearSearch")
targetAttachment="bottom left"
constraints=(array (hash to="window" attachment="together" pin=true))}}
<ul class="docs-list-none docs-w-76 docs-bg-white docs-shadow-md" data-test-search-result-list>
{{#each (take 5 searchResults) as |result index|}}
<li>
{{docs-header/search-result
result=result
query=query
selected=(eq index selectedIndex)
on-mouse-enter=(action "selectResult" index)
on-click=(action "clearSearch")}}
</li>
{{else}}
<li class="docs-block docs-py-1 docs-px-3 docs-text-grey-dark docs-no-underline">
No results.
</li>
{{/each}}
</ul>
{{/modal-dialog}}
{{/if}}