Sha256: 5dc43686e0b87298edc39c7aa6e09ac7b0862570438370236087a23d4f359809
Contents?: true
Size: 964 Bytes
Versions: 2
Compression:
Stored size: 964 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: function(obj) { return obj.tokens }, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dta_rapid-1.3.5 | _includes/lists/suggestion-search.html |
dta_rapid-1.3.3 | _includes/lists/suggestion-search.html |