Sha256: f33ac9bc3d83fbaf756969d062e90c3d5f0a522c8a695cf78b4cbde0920925f3
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
<div id="suggestion-search"> <input class="uikit-text-input uikit-text-input--block search-input" placeholder="{{ include.placeholder }}" type="text"> </div> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(e) { var data = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('shortDescription'), queryTokenizer: Bloodhound.tokenizers.whitespace, local: searchResults }); $('#suggestion-search .search-input').typeahead({ classNames: { wrapper: 'search-input-wrapper', menu: 'suggestion-search-menu' }, hint: true, highlight: true, minLength: 1 }, { name: 'data', source: data, display: 'value', templates: { suggestion: function(result) { return `<div class="search-list__item"><a href="${result.link}">${result.shortDescription}</a></div>`; }, } }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dta_rapid-1.3.2 | _includes/lists/suggestion-search.html |