Blazor wrapper for Bootstrap 3 Typeahead
- Reference Shipwreck.BlazorTypeahead from nuget.org
- Reference
Shipwreck.BlazorTypeahead.js
insideShipwreck.BlazorTypeahead
contents. - Add
<script>
references for jQuery and Bootstrap 3 or later in your Blazor HTML. (Bootstrap 3 Typeahead is embedded in the package.)
// using Shipwreck.BlazorTypeahead;
// IJSRuntime js;
// ElementReference element;
js.TypeaheadAsync(element, new TypeaheadOptions<T>
{
SourceCallback = QueryAsync,
});