0.2.0 • Published 3 years ago
ember-search-with-modifiers v0.2.0
ember-search-with-modifiers
A search box that can be configured to allow autocompleting modifier lists
Installation
ember install ember-search-with-modifiers
Usage
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.
0.2.0
3 years ago
0.1.0
4 years ago
0.0.3
4 years ago
0.0.2
5 years ago
0.0.1
5 years ago
0.0.1-beta.2
5 years ago
0.0.1-beta.1
5 years ago