ember-search-with-modifiers
v0.2.0
Published
A search box that can be configured to allow autocompleting modifier lists
Readme
ember-search-with-modifiers
A search box that can be configured to allow autocompleting modifier lists
Installation
ember install ember-search-with-modifiersUsage
Example:
{{#search-with-modifiers
query=query
enter=(action "search")
focusOnInput=(action "focusOnInput")
sampleQueries=sampleQueries
configHash=searchContext.config as |x|}}
{{x.search-box
focused=(mut searchFocused)
onFocus=(action "showSearchHelpsOnFocus")
onEscPressed=(action "hideSearchHelps")
onDownPressed=(action "focusOnResults")
placeholder=placeholder}}
{{#if showSearchHelps}}
{{x.modifier-list
focused=(mut resultsFocused)
focusOnInput=(action "focusOnInput")}}
{{else if isSearching}}
<div class="searching">{{t "search.message.searching"}}</div>
{{else}}
{{!-- search results --}}
{{/if}}
{{/search-with-modifiers}}License
This project is licensed under the MIT License.
